#test1964-Sepa
1 messages ยท Page 1 of 1 (latest)
Um that's the SetupIntent flow and you don't specify an amount there
so yes it doesn't actually charge any money
ok, what are the mandatory customer details that would be required in this flow?
I don't have the list to share, but I am sure our SDK will collect it for you
you don't need to to worry about the details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Only know that information here will be available
ok, what API call we'll need to make to capture payment for the SEPA direct debit mandate with mandatory params?
Follow the Doc you linked earlier
<div id="iban-element">
<!-- A Stripe Element will be inserted here. -->
</div>
Then mount this div and call confirmSepaDebitSetup from Stripe Element
the capture of payment will happen after the checkout seesion, so we wont have the stripe element
it would be an API call
Oh are you using Checkout?
Then I think Checkout would automatically does that for you too
your earlier resposne 'Um that's the SetupIntent flow and you don't specify an amount there
so yes it doesn't actually charge any money'
Sorry if I misunderstood your question. To clarify, you are using Checkout in setup mode, for Sepa Direct Debit, right?
yes, but in that session, we'll only capture bank details & create a mandate, we wont capture any payment
we want to capture payment from backend
Because it's a SetupIntent, it won't generate a payment anyway
yes
now we want to capture the payment after few days
for that which API call we should make & what are the mandatory params for that
When you specify the Setup mode Checkout, what parameter you used to not capture right away?
Just aligning
exploring that part but as you said its a setupIntent & a paymentMethod object so there wont be capturing payment
we will be capturing the payment every month on a specific date, for that should we make PaymentIntent call from backend system ?
its a setupIntent & a paymentMethod object so there wont be capturing payment
Yes exactly!
capturing the payment every month on a specific date,
Yes, make a PaymentIntent, specify the PaymentMethod (pm_xxx) that is saved inside the SetupIntent object
ok, what are mandatory params in the PaymentIntent call to capture payment for SetupIntent object
Just specify the collected PaymentMethod Id here https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so apart from, payment_method, amount, currency & confirm params, should be also add the customer param ?
Understanding what are the mandatory params here is very important for us, that is why repeating the same question ๐
Customer is to identify the same person you want to charge
But really the saved payment_method already attached to a specific Customer, so if you pass in a different person the API will error out
ok, so the customer id param is not mandatory only payment_method, amount, currency & confirm params are enough
Yeah. I recommend testing and exploring in Test mode
ok, thanks for your help