react-native-payments
react-native-payments copied to clipboard
Apple Pay paymentRequest.show() doesn't resolve
I'm following the official demo, but both on real device and emulator I'm getting stuck in the 'Processing' state. Also paymentRequest.show() promise never resolves. Any ideas what might be wrong here?
const DETAILS = {
id: 'basic-example',
displayItems: [
{
label: 'Movie Ticket',
amount: { currency: 'USD', value: '15.00' },
},
],
total: {
label: 'Freeman Industries',
amount: { currency: 'USD', value: '15.00' },
},
};
const METHOD_DATA = [
{
supportedMethods: ['apple-pay'],
data: {
merchantIdentifier: '***,
supportedNetworks: ['visa', 'mastercard'],
countryCode: 'EE',
currencyCode: 'EUR',
},
},
];
const paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS);
paymentRequest
.show()
.then((paymentResponse) => {
// Never gets here
paymentResponse.complete('success');
})
.catch((error) => {});


Hey @raulgordejev Did you manage to get it running?
@filippobarcellos unfortunately not. I ended up using another library react-native-apple-payment
still not resolved? having the same problem