cordova-plugin-applepay icon indicating copy to clipboard operation
cordova-plugin-applepay copied to clipboard

ApplePay.makePaymentRequest is throwing error "Payment not completed"

Open priyank21 opened this issue 6 years ago • 5 comments

IN this function, it is always throwing an error "PAYMENT NOT COMPLETED" and going to catch (){} when I upload build on Testflight ApplePay.makePaymentRequest(order) .then((paymentResponse) => { // User approved payment, token generated. }) .catch((message) => { // Error or user cancelled. });

priyank21 avatar Jul 25 '18 11:07 priyank21

Is this working for other builds (besides Test Flight?) Please also see https://github.com/samkelleher/cordova-plugin-applepay/issues/31

ajcrites avatar Dec 03 '18 20:12 ajcrites

I'm getting the same issue. I've not tried it on live but it's working in an emulator without issue.

I've added the options from issue #31 I've gone into XCode and manually confirmed all the options so apple pay is showing as I think it should:

image

webnoob avatar Dec 21 '18 12:12 webnoob

If you need any more information to debug this, I have time to get it for you. Really keen on getting this feature sorted so I can accept donations on my app :)

webnoob avatar Dec 22 '18 13:12 webnoob

In my case, I had to enable 3ds in merchant capabilities.

merchantCapabilities: ['3ds', 'debit', 'credit'],

Found out from here that it is required - https://stackoverflow.com/questions/26553229/payment-not-completed-with-apple-pay-cant-get-token

rali14 avatar Jun 13 '19 01:06 rali14

I'm getting the same issue. I've not tried it on live but it's working in an emulator without issue.

I've added the options from issue #31 I've gone into XCode and manually confirmed all the options so apple pay is showing as I think it should:

image

in my case, in "home.page.ts" I've changed the "merchantIdentifier" from "merchant.apple.test" to the actual one that identified in Apple developer portal. and it worked on both simulator and my actual iPhone.

anasred avatar Jun 24 '19 10:06 anasred