naoufal / react-native-payments

Accept Payments with Apple Pay and Android Pay using the Payment Request API.
https://www.npmjs.com/package/react-native-payments
1.59k stars 413 forks source link

IOS PaymentMethod data empty #221

Open alexchervon opened 4 years ago

alexchervon commented 4 years ago

Hi! I integrate cloudpayments, but for some reason the following data from the example do not come to me, they do not exist at all. Also, I do not have a cryptogram string. Checking on a real device. No errors occur

What is missing in the response from apple pay:

"paymentMethod": { "network": "MasterCard", "type": "credit", "displayName": "MasterCard 4248" },

What comes to me: '{ "paymentData": { "version": "EC_v1", "data": "string", "signature": "string", "header": { "ephemeralPublicKey": "string", "publicKeyHash": "string", "transactionId": "string" } }, "transactionIdentifier": "string" }

JollyGolf commented 4 years ago

Maybe you need set up sandbox environment on your device.

ramisalem commented 4 years ago

@JollyGolf @alexchervon I have the same issue did find a solution?