cordova-plugin-applepay
cordova-plugin-applepay copied to clipboard
ApplePay.makePaymentRequest is throwing error "Payment not completed"
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. });
Is this working for other builds (besides Test Flight?) Please also see https://github.com/samkelleher/cordova-plugin-applepay/issues/31
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:
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 :)
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
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:
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.