#Shahzaib
1 messages · Page 1 of 1 (latest)
You want to accept a payment or just collecting the payment method ?
I want to just payment method as I using that payment method id on backend to create intent using Stripe.paymentIntents.create
Then, you need to adapt your integration to use SetupIntent:
https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet
Here is a complete screen example:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentSheetWithSetupIntent.tsx
I can't i get payment method with something like
const { error, paymentMethod } = await stripe.createPaymentMethod({
elements: elements.getElement('payment'),
})
as currently it is giving me error : " type should be a string such as 'card', 'ideal', or 'sepa_debit'."
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-requestd
But you should be following the step I shared with you. not using createPaymentMethod function.
req_oFgoeM1mKQuiP1
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
If you want to collect Payment Method details please use SetupIntents, as per this guide: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
You don't need stripe.createPaymentMethod