Open MohammedAliBinTaleb opened 3 years ago
publish key ====> public key
Hi Mohammed, yes it is a problem - you need to sign up for a merchant account with either Stripe or Braintree to use the tokenization options. They will give you an API key.
If you exclude those you should have an Apple/Google cryptogram returned but you will need to decrypt it server side which is pretty complex, so I'd recommend going with one of the above. The signup process for Stripe is much easier than Braintree.
mohamed did it work with you ?
Please try with try...catch block
const onPay = async () => {
try {
const paymentRequest = new global.PaymentRequest(METHOD_DATA, DETAILS);
let respons = await paymentRequest.show();
} catch (e){
// handle error
}
};
Hi Mohammed, yes it is a problem - you need to sign up for a merchant account with either Stripe or Braintree to use the tokenization options. They will give you an API key.
If you exclude those you should have an Apple/Google cryptogram returned but you will need to decrypt it server side which is pretty complex, so I'd recommend going with one of the above. The signup process for Stripe is much easier than Braintree.
I don't use Stripe and Braintree. How can I get publicKey? @govarthananve @nabilfreeman
Thank you for Great Payment package mr @naoufal
I have issues with react-native-payment when I try to press button to show Android Pay it give me this Errror
Possible Unhandled Promise Rejection (id: 1) 10
Even when I try to catch Error in console.log(Error) it show me this ===> "10" !
this is my code 👇
note : I have no idea how to generate publish key is this could be a problem ?
I hope you can help me as soon as possible 😅