Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Apple Pay Issue #811

Closed
kishoreAwdar opened this issue Jul 24, 2021 · 1 comment
Closed

Apple Pay Issue #811

kishoreAwdar opened this issue Jul 24, 2021 · 1 comment

Comments

@kishoreAwdar
Copy link

Apple pay is working on simulator without any issues, but on real phones (include sandbox account and live account) doesn't work.
It shows an alert "Error: Cancelled by user". (please check the image).

App region is 'Ireland'.
Created everything for Apple Pay.

My code is below


import RNPickerSelect from 'react-native-picker-select';
stripe.setOptions({
publishableKey: 'pk_test_*********************************',
merchantId: 'merchant.com.--.--------',
})

try {
const token = await stripe.paymentRequestWithNativePay({
currencyCode: 'EUR',
countryCode: 'IE',
shippingType:'delivery',
requiredBillingAddressFields: [],
},
[
{
label: 'Item',
amount: '' + totalPrice,
}
],
);

IMG-20210723-WA0031 (1)

@fbartho
Copy link
Collaborator

fbartho commented Jun 20, 2023

Closing this ticket, so that new users don't think this project is still active.

Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!

See more: #842

@fbartho fbartho closed this as completed Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants