未验证 提交 2402cf2b 编写于 作者: J jrptest 提交者: GitHub

update: rename iap payment to apple iap (#3)

docs: rename iap payment to apple iap
上级 0b5c909b
...@@ -120,7 +120,7 @@ const unipayIns = unipay.initAlipay({ ...@@ -120,7 +120,7 @@ const unipayIns = unipay.initAlipay({
- 支付宝支付时遇到`error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag`类似的错误时请确认一下自己的私钥格式,如果不是PKCS8需要在初始化时传入keyType参数,值为对应的私钥格式 - 支付宝支付时遇到`error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag`类似的错误时请确认一下自己的私钥格式,如果不是PKCS8需要在初始化时传入keyType参数,值为对应的私钥格式
### 苹果内购(iap)支付 ### 苹果内购支付
**入参说明** **入参说明**
...@@ -131,7 +131,7 @@ const unipayIns = unipay.initAlipay({ ...@@ -131,7 +131,7 @@ const unipayIns = unipay.initAlipay({
| timeout | Number | 否 | 5000 | 请求超时时间,单位:毫秒 | | timeout | Number | 否 | 5000 | 请求超时时间,单位:毫秒 |
```js ```js
const unipayIns = unipay.initIapPayment({ const unipayIns = unipay.initAppleIapPayment({
sandbox: true, sandbox: true,
password: 'your password', password: 'your password',
}) })
...@@ -725,7 +725,7 @@ exports.main = async function (event) { ...@@ -725,7 +725,7 @@ exports.main = async function (event) {
``` ```
### iap校验支付凭证@verifyReceipt ### 苹果内购-校验支付凭证@verifyReceipt
`unipayIns.verifyReceipt`, 校验iap支付凭证返回交易信息。 `unipayIns.verifyReceipt`, 校验iap支付凭证返回交易信息。
...@@ -733,7 +733,7 @@ exports.main = async function (event) { ...@@ -733,7 +733,7 @@ exports.main = async function (event) {
| 参数名 | 类型 | 必填 | 默认值 | 说明 | 支持平台 | | 参数名 | 类型 | 必填 | 默认值 | 说明 | 支持平台 |
| :-----------: | :----: | :---------------------: | :----: | :--------: | :------: | | :-----------: | :----: | :---------------------: | :----: | :--------: | :------: |
| receiptData | String | 是 | - | iap支付凭证| - | | receiptData | String | 是 | - | 支付凭证 | 苹果内购支付 |
**返回值说明** **返回值说明**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册