#BilalSaeedAlam
1 messages · Page 1 of 1 (latest)
Hi there!
This is covered in step 4 of the guide you shared: https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=web#web-collect-details
It's basicaly this line: stripe.collectBankAccountForSetup(...)
And Stripe will collect all the information needed
Yes i can see this function
stripe.collectBankAccountForSetup({
clientSecret: clientSecret,
params: {
payment_method_type: 'us_bank_account',
payment_method_data: {
billing_details: {
name: accountHolderNameField.value,
email: emailField.value,
},
},
},
expand: ['payment_method'],
})
But there is no any Stripe Elemt for this, shold we use custom fields for this?
Have you tried this code? This will open a popup where the end user will enter their payment details.
In the billing_details object what will be the keys for routing number and account details?
In the billing_details object what will be the keys for routing number and account details?
No, that's Stripe who will collect this.
O i see, not yet i was just reading it and finding that thing.
Got it.
Perfect understood now
I will try it and just last thing i am using Next JS, so should i need to add <script> on the header or packages are enough which i have installed
?
I'm not familiar with Next, but based on this link: https://stripe.com/docs/js/including
Include the Stripe.js script on each page of your site—it should always be loaded directly from https://js.stripe.com, rather than included in a bundle or hosted yourself.
Alright no worries, i will try it, thanks @whole orbit