#hamid-mandate-error

1 messages ยท Page 1 of 1 (latest)

dense crypt
#

Hi ๐Ÿ‘‹ what's the error you're seeing?

thorn jasper
#

okie i have discussed this with you guys, like two days ago

#

let me share details again

dense crypt
#

I think I remember that, you have an angular frontend, right?

thorn jasper
#

no no ๐Ÿ™‚

#

I am rails backend

dense crypt
#

Oops, sorry about that

thorn jasper
#

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

dense crypt
#

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.

thorn jasper
#

leave it for now

#

let me come up with more concrete info

thorn jasper
#

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

balmy patio
#

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

thorn jasper
#

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?

balmy patio
#

I am still looking in to this

#

Thank you, please go on with this info

thorn jasper
#

CAN YOU SEE a. b. and c.

balmy patio
#

I can. Unsure on them at the moment. Will check/test them

thorn jasper
#

sure, waiting

balmy patio
#

So yes, you do need the on_behalf_ofs to match here

thorn jasper
#

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

balmy patio
#

The SetupIntent needs on_behalf_of as well

#

Awesome!

#

Tell me how it goes

#

thank you for your patience, apologies on the delayed replies

thorn jasper
#

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

balmy patio
#

Can you provide the ID for the request that failed in the second scenario?

thorn jasper
#

OKEI

#

request_id=req_9V4zYa19QxAGTa

steady oriole
#

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

thorn jasper
#

so its necessary for SEPA and SOFORT

#

?

#

also any way i can make this sepa scenario functional by passing nay parameter?

steady oriole
#

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 using on_behalf_of , then you need to make both the SetupIntent and PaymentIntent use that param