#hamid-mandate-error
1 messages ยท Page 1 of 1 (latest)
okie i have discussed this with you guys, like two days ago
let me share details again
I think I remember that, you have an angular frontend, right?
Oops, sorry about that
okie i was getting backend error
so here is what your guy investigated
this is your PaymentIntent creation, see how it has on_behalf_of there.
https://dashboard.stripe.com/logs/req_Q32gSc42ytaWlH this is your SetupIntent creation
and it does not have on_behalf_of```
i have this mendate id
mandate_1Jqwa0BH4xAxsJ7lWIvTYFBa
with this setup intent id
seti_1JqwZzBH4xAxsJ7lbpkpJhrT
so what exactly the error is, as mendate is given
Sorry this isn't enough information for me to understand the situation, I found your previous thread but it will take me some time to go through it.
hi there
?
is it possilbe if ill create setupintent without on behalf of
and then ill create payment intent by includeing on behalf of?
for credit cards
and for sepa and for sofort
Okay thank you for all of the info. Looking in to what exactly the PaymentIntent was expecting when it got that error
And if it is possible to do a PaymentIntent with on_behalf_of without the SetupIntent having used that when creating the PaymentIntent
there are four scenaiors for on behalf of
a. setup intent -> on behalf of -> nil, payment intent -> on behafl of nil. IT WORKS
b. setup intent -> on behalf of -> some account, payment intent -> on behafl of some account. IT WORKS TOO
c. setup intent -> on behalf of -> account_a, payment intent -> on behafl of account_b. WILL THIS WORK?
So the error message indicates that it wants you to provide the mandate_data. Have you tried putting the data from the mandate object that you have in to that parameter? https://stripe.com/docs/api/payment_intents/create#create_payment_intent-mandate_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am still looking in to this
Thank you, please go on with this info
CAN YOU SEE a. b. and c.
I can. Unsure on them at the moment. Will check/test them
sure, waiting
So yes, you do need the on_behalf_ofs to match here
what do you means
FOR CREDIT CARD, I JUST TRIED THIS AND IT WORKED.
setup intent -> on behalf of -> nil, payment intent -> on behafl of SOME ACCOUNT ID. AND IT WORKED
going to do this for sepa
The SetupIntent needs on_behalf_of as well
Awesome!
Tell me how it goes
thank you for your patience, apologies on the delayed replies
no problem, but
problem was with sepa, i am going to verify again, ill update you
okie i verified
FOR CREDIT CARD, I JUST TRIED THIS AND IT WORKED.
setup intent -> on behalf of -> nil, payment intent -> on behalf of SOME ACCOUNT ID. AND IT WORKED
FOR SEPA, I JUST TRIED THIS AND IT DID NOT WORK.
setup intent -> on behalf of -> nil, payment intent -> on behalf of SOME ACCOUNT ID. AND IT DID NOT WORK
Can you provide the ID for the request that failed in the second scenario?
hello, catching up here one sec
@thorn jasper cards are different from SEPA here in that card PaymentMethods don't have mandates
to fix this, you need to create a SetupIntent with on_behalf_of and also use the PaymentIntent with on_behalf_of also
so its necessary for SEPA and SOFORT
?
also any way i can make this sepa scenario functional by passing nay parameter?
yes necessary for any PaymentMethods that have a Mandate required on them
also any way i can make this sepa scenario functional by passing nay parameter?
not sure what you mean but basically if you're usingon_behalf_of, then you need to make both the SetupIntent and PaymentIntent use that param