提交 ec9faa62 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

update tutorial/app-payment-google.md

上级 60d39370
......@@ -55,6 +55,7 @@
|gatewayMerchantId|支付网关的商户id|当`tokenizationSpecificationType``PAYMENT_GATEWAY`时必填|
|protocolVersion|加密协议版本|当`tokenizationSpecificationType``DIRECT`时必填|
|publicKey|公钥|当`tokenizationSpecificationType``DIRECT`时必填|
|buildTokenizationSpecification|自定义构造tokenizationSpecification参数,设置此字段时,会覆盖掉`tokenizationSpecificationType``gateway``gatewayMerchantId``protocolVersion``publicKey`字段。(HBuilderX 3.5.1+支持)|否|
2. `PAYPAL` 支付
......@@ -121,6 +122,13 @@ plus.payment.getChannels((providers) => {
gatewayMerchantId: "exampleGatewayMerchantId", //PAYMENT_GATEWAY时必填
protocolVersion: "", //DIRECT时必填
publicKey: "", //DIRECT时必填
buildTokenizationSpecification:{//可选,此字段是为了方便开发者自定义构造tokenizationSpecification参数,设置此字段时,会覆盖掉`tokenizationSpecificationType`、`gateway`、`gatewayMerchantId`、`protocolVersion`、`publicKey`字段。(HBuilderX 3.5.1+支持)
"type":"PAYMENT_GATEWAY",
"parameters":{
"gateway":"custom-gateway",
"gatewayMerchantId":"mock-gatewayMerchantId"
}
}
};
......@@ -169,4 +177,3 @@ plus.payment.getChannels((providers) => {
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册