yevheniionipko / react-native-apple-payment

Apple Pay for React Native
MIT License
15 stars 9 forks source link

What to do with paymentResponse? #13

Open sleep9 opened 7 months ago

sleep9 commented 7 months ago

Testing with apple pay is working on physical device. But I am unsure if I need to do further processing with the paymentResponse(TransactionIdentifier type) to make sure the transaction was valid. I get the following object returned from the transaction:

{
   "data":"string",
   "signature":"string",
   "header":{
      "publicKeyHash":"string",
      "ephemeralPublicKey":"string",
      "transactionId":"string"
   },
   "version":"EC_v1"
}
yevheniionipko commented 7 months ago

Hi, you need to ask your payment provider what they waiting for response... because from sdk you can get token which include this object but like a string