#itachi1987_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1501154037188399194
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Hi soma, hope you can help us fix our problem ๐
In a previous chat (some days ago) someone wrote us the following:
Looks like you're already looking at the correct guide! You have "Checkout" selected but this also works with "Elements": Save SEPA Direct Debit details for future payments
The steps you'll want to follow are:
Create a Customer to save the name
Create a SetupIntent for the Customer with payment_method_types: ["sepa_debit"] (server-side)
Collect the IBAN (client-side) which we have an element for https://docs.stripe.com/js/react_stripe_js/elements/other/iban_element
Generate your SEPA mandate doc and collect a signature
Confirm the SetupIntent with mandate_data.customer_acceptance.type: "offline" (server-side) Confirm a SetupIntent | Stripe API Reference
Looks like you are following this doc/integration, but you want to disable mandate collection by Stripe? https://docs.stripe.com/payments/sepa-debit/set-up-payment?payment-ui=elements
exactly
cause we generate a mandate document which the customer will fill and sign in docusign, after that we will confirm the mandate
just to explain the time sequence:
- customer fills the data and the iban
- asynchronously we will generate the mandate document and let him sign in docusign
- after the docusign callback we will confirm the SEPA payment method server side
the chat you shared above, was it on Discord or somewher else? also the link it contains doesn't seem to work.
discord
ah yes, found it: https://discord.com/channels/841573134531821608/1496527449553637376
ye, it doesn't work but we found the element here https://docs.stripe.com/js/elements_object/create_element?type=iban
got it. I'm not really familiar with this flow, give me a few minutes to look into it.
in the other Discord thread, we suggest you a 5 step process. have you tried the 5 steps? if so, can you clarify which if the 5 step is causing your issues?
Collect the IBAN (client-side) which we have an element for https://docs.stripe.com/js/react_stripe_js/elements/other/iban_element
in this step, which method should we call in StripeJS to save the iban element without create the effective SEPA direct debit?
๐ Hey, taking over here, just taking a look
So it looks like you should use stripe.createPaymentMethod https://docs.stripe.com/js/payment_methods/create_payment_method - This will convert the payment info to a PaymentMethod object, but doesn't trigger confirmation or mandate creation
ok, so after that i should Confirm the SetupIntent with mandate_data.customer_acceptance.type: "offline" (server-side) Confirm a SetupIntent | Stripe API Reference right?
Exactly, yes
just another question: stating at this https://docs.stripe.com/api/payment_methods/create#create_payment_method-billing_details it is possible to send also the billing details, it is possible to use it to store related informations (email and name of the iban holder) of sepa direct debit?
or we should just store the iban there?
Yes, you should store the email and name in that billing_details dictionary
i give it a try right now, can we leave this channel open for some minutes?