#abignalet-bancontact
1 messages ยท Page 1 of 1 (latest)
Hey thanks
when creating the PaymentIntent in the backend you should provide the mandate_data hash https://stripe.com/docs/api/setup_intents/create#create_setup_intent-mandate_data-customer_acceptance
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 I need to set confirm to true as well?
euh you provided a setup intent documentation...
yeah my bad I read I am integrating setup intent for bancontact and didn't put 2+2 together
but it's the same thing with Payment Intents anw
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
My user submit the mandate with the confirmBancontactSetup and you say that I should re-ask it for each payments?
sorry i might be missing something here
Are you saying that there was a SetupIntent before the PaymentIntent you provided?
could you share the Setup Intent Id?
seti_1L2t4JCl5KTfVaEUyEpn7BC0
the mandate is null so when the Setup Intent was confirmed the mandate wasn't saved
there are two things here, 1st the mandate wasn't saved, 2nd you must provide the mandate id when creating a PaymentIntent with confirm=true
I'm trying to see why the mandate wasn't saved
Okay
when I confirmBancontactSetup I pass handleActions to false. Should I do something specifically for the mandate?
I see the issue now
the Setup Intent you created is on your Platform account whereas the Payment Intent you're doing it on_behalf_of your Connect Account
which explains why the customer has already given you his acceptance to be charged by the Platform but not by the Connect Account
so you should either do the SetupIntent with the on_behalf_of parameter set so the mandate would be linked to the Connect Account
or you need to collect a mandate for each Connect Account when it's needed
I cannot reuse in any way the mandate of the platform?
I do not see any mandate id in the setup_intent even on the platform
I cannot reuse in any way the mandate of the platform?
unfortunately no
I have a lot of connected accounts, it does not seem possible to ask mandate for each one
Are you sure that there is any other way?
Are you sure that there is any other way?
AFAIK, unfortunately there isn't
Why did not I have a mandate id after the setup intent on my platform?
mandate_1L2t4PCl5KTfVaEU48kvlvb9 this is the mandate id that was generated
it's related to the payment method created
It is the bancontact test payment method
yes
This mandate you linked was generated after a payment intent without on_behalf_of (a test a made)
I want to get the mandate from a setup intent before paying
it was generated by the setup intent seti_1L2t4JCl5KTfVaEUyEpn7BC0 but first used by a Payment Intent
Could you find the one related to this one seti_1L2tyvCl5KTfVaEUGcrro5rC?
mandate_1L2tz1Cl5KTfVaEU8K36Erer
Why did not I have access to it?
what do you mean?
mandate are not shown in the dashboard
you could retrieve them using the API https://site-admin.stripe.com/docs/api/mandates/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Why cannot I retrieve it from the setup intent?
I don't know honestly
I'm also a bit surprised that the Setup Intent wasn't updated
maybe it's expected behavior but I'm not sure
Just can you give me your way of finding so quick the mandate id?
from the Setup Intent you could look at the latest_attempt
thanks