使用Cordova插件获取Apple Pay

时间:2019-09-28 22:57:14

标签: cordova mobile cordova-plugins payment-gateway applepay

我正在我的cordova项目中尝试使用插件cordova-plugin-applepay。根据文档https://www.npmjs.com/package/cordova-plugin-applepay,一旦使用makePaymentRequest()发出付款请求,便会返回一个paymentResponse对象。

makePaymentRequest(order)
.then((paymentResponse) => {
        // The user has authorized the payment.

        // Handle the token, asynchronously, i.e. pass to your merchant bank to
        // action the payment, then once finished, depending on the outcome:

        // Here is an example implementation: 
        // THIS IS WHAT I DONT UNDERSTAND
        // MyPaymentProvider.authorizeApplePayToken(token.paymentData)
        //    .then((captureStatus) => {

我想知道MyPaymentProvider.authorizeApplePayToken()有什么作用?当您计划在应用程序中使用ApplePay时,仍然需要自己将其发布到商家银行。我当时以为ApplePay会解决这个问题。

预先感谢

0 个答案:

没有答案