cordova-plugin-applepay
cordova-plugin-applepay copied to clipboard
Cards not recognized after pushing to App Store/TestFlight
If I do a local push from Xcode all function calls work as expected, but as soon as I push the same build of the app through TestFlight or through the App Store it always says that there are no supported cards. I have these same results with my production app, as well as a Ionic blank starter.
cordova-ios: 4.5.4 cordova-plugin-applepay: 3.0.0
Not the same issue as https://github.com/samkelleher/cordova-plugin-applepay/issues/14 as the Apple Pay capability is ON and the merchant id is selected. (And all three associated checkmarks are checked)
Not the same issue as https://github.com/samkelleher/cordova-plugin-applepay/issues/10 since the merchant ID has been added.
Not the same issue as https://github.com/samkelleher/cordova-plugin-applepay/issues/22 since I am not dealing with test sandbox accounts or Xcode capability issues.
This issue is also brought up here on the ionic forms, https://forum.ionicframework.com/t/has-anyone-successfully-integrated-apple-pay-with-ionic-2/84002
Does anyone know where I could look to find the cause of this?
Support @Barlocker-Garrett not work in production, pushing to App Store/TestFlight
Hi, Have you found a solution, I have the same issue!
I have not found a working solution, sorry.
It turns out that the xCode was not adding the correct entitlements to the Entitlements.plist file. On submitting the app to app store check the list of entitlements the apple pay and merchant ID should be there if not edit the Entitlements.plist file and add them.
It turns out that the xCode was not adding the correct entitlements to the Entitlements.plist file. On submitting the app to app store check the list of entitlements the apple pay and merchant ID should be there if not edit the Entitlements.plist file and add them.
Where to find and edit the Entitlements.plist file after submitting the app to app store
This plugin does not update the entitlements on its own. I have updated the documentation:
https://github.com/samkelleher/cordova-plugin-applepay/blob/4bf3eac62f8a4e67021829a1e15ac50d3a9dae5e/README.md#updating-entitlements
Let me know if there are issues with this.
An example of resigning with entitlements would be https://stackoverflow.com/questions/36888535/how-do-i-resign-app-with-entitlements
Just to note, I've also had this issue but it was linked to this issue: https://stackoverflow.com/questions/49393514/apple-pay-error-add-merchant-id-to-your-app-id
Red herring, turns out I still have this issue. I've added the enrolment stuff. Need to verify it's in place on XCode though.
Hi, I have the same issue , can found solution ?
It turns out that the xCode was not adding the correct entitlements to the Entitlements.plist file. On submitting the app to app store check the list of entitlements the apple pay and merchant ID should be there if not edit the Entitlements.plist file and add them.
Thank you so much for this. Saved me hours