#shivani M
1 messages · Page 1 of 1 (latest)
hi! can you share
the PaymentIntent ID pi_xxxx
the exact code you used
screenshots/a video of what the flow looks like in the app when this happens
getting error like
{"code": "Failed", "declineCode": null, "localizedMessage": "secret format does not match expected client secret formatting.", "message": "secret format does not match expected client secret formatting.", "stripeErrorCode": null, "type": null}
then I'd start by adding a log line to log the value of the clientSecret that you pass to the function to see what it looks like.
I have added just like this
(FYI, I have hide my personal details)
seti_xxx_yyy is not a PaymentIntent client secret, it's a SetupIntent
so if you're doing a payment, you need to create a PaymentIntent on the backend server and use its secret(which will look like pi_xxx_secret_yyy) in this code instead.
so how we can save setup payment for future with 'initPaymentSheet'
Hi! I'm taking over this thread.
You want to save the card without making a charge, or you want to save the card and make a charge at the same time?
Yes I want to save card for future and charge payment too with ACH
Got it. Then when you create the PaymentIntent, make sure to set setup_future_usage. This will allow you to save and reuse the PaymentMethod. https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
yes I did it and getting. blank object as response
{}
Can you clarify exactly what you did? And please share relevant object ID or request ID.
`const {error, paymentOption} = await initPaymentSheet({
merchantDisplayName: 'XYZZZ',
customerId: 'cus_',
paymentIntentClientSecret: 'pi_secret******',
customerEphemeralKeySecret: 'ek_test_************',
// Set `allowsDelayedPaymentMethods` to true if your business can handle payment
//methods that complete payment after a delay, like SEPA Debit and Sofort.
// allowsDelayedPaymentMethods: true,
defaultBillingDetails: {
name: 'XYZZZ',
},
}).then(result => {
console.log('paymentOption', JSON.stringify(result));
});`
Hey! Taking over for my colleague. Let me catch up.
Can you try run this sample:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ACHSetupScreen.tsx
Or this if you want to work with PaymentSheet:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentSheetWithSetupIntent.tsx
I want to do instant payment with verify account using ACH with saving details for future payments using react native
How can we do instant payment with verificaion using ACH
That support Instant verification but not instant payment
For step by step integration:
https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=mobile&ui=react-native
As my colleague mentioned, you need to pass setup_future_usage: 'off_session'