samkelleher / cordova-plugin-applepay

A complete Cordova plugin that adds Apple Pay support.
Apache License 2.0
46 stars 63 forks source link

Cards not recognized after pushing to App Store/TestFlight #31

Open Barlocker-Garrett opened 6 years ago

Barlocker-Garrett commented 6 years ago

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?

navi8602 commented 6 years ago

Support @Barlocker-Garrett not work in production, pushing to App Store/TestFlight

kalitk0 commented 6 years ago

Hi, Have you found a solution, I have the same issue!

Barlocker-Garrett commented 6 years ago

I have not found a working solution, sorry.

kalitk0 commented 6 years ago

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.

DNeelanshi commented 5 years ago

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

ajcrites commented 5 years ago

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

webnoob commented 5 years ago

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.

PeiJueChen commented 5 years ago

Hi, I have the same issue , can found solution ?

BRadHoc commented 4 years ago

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