#daniyal_11692

1 messages · Page 1 of 1 (latest)

glad flaxBOT
ashen dawn
#

Hi, let me help you with this.

#

Could you please share the PaymentIntent ID pi_xxx?

jade sage
#

not sure about which PaymentIntent ID you are asking for?

ashen dawn
#

Hi @jade sage I opened the thread, do you have any follow up questions?

ashen dawn
#

here is the id: seti_1O2YruAAKdQR3wItQSNfXbH6

#

@jade sage I close the threads after some time as we are tryng to provide real-time support. Please bear with me. If you prefer to get support in your pace, feel free to reach out to Stripe Support: https://support.stripe.com/?contact=true

jade sage
#

no problem, i'll try to catch up with yor pace

#

i've shared the id ^

ashen dawn
#

Thanks, looking.

#

Why are you using on_behalf_of here? It's then using Payment Method configuration from that account, so that's why you are not seeing the other types, like Klarna, affirm, etc.

jade sage
#

let me comment it out and then check

ashen dawn
#

But why are you using it?

jade sage
#

i've commented it out but still Klarna, affirm does not show.

ashen dawn
#

Could you please share the PaymentIntent ID pi_xxx?

jade sage
#

$intent = \Stripe\SetupIntent::create([
'customer' => $customer->id,
// 'on_behalf_of' => $integration->stripe_user_id,
'automatic_payment_methods' => [
'enabled' => true,
],
]); will i get it from here?

#

i'm getting this in id: seti_1O2YruAAKdQR3wItQSNfXbH6

ashen dawn
#

Or SetupIntent ID in your case, sorry.

#

You are still using on_behalf_of here.

jade sage
#

here it is seti_1O2Z7OAAKdQR3wItP8uvpBOZ

#

sorry sent you the previous one

ashen dawn
#

I see you're using a very old API version 2015-10-16, I recommend you to update, as this might produce unexpected errors like this one

jade sage
#

any recommend one in my case?

ashen dawn
#

The latest one 2023-10-16

jade sage
#

sorry but i'm using this one: apiVersion: '2020-08-27'

ashen dawn
jade sage
#

let me recreate and share the id

#

can you pls check against this: seti_1O2ZPiAAKdQR3wItrrezj3Gz

finite mortar
jade sage
#

this is how i'm giving the version: const stripe = Stripe(stripePublishableKey, { locale: getQueryParam('lang'), apiVersion: '2020-08-27',});

#

not sure why its picking an older one

finite mortar
#

You can't set API version client-side, the API version needs to be set server-side in your php code

#

as that's what creates the SetupIntent

jade sage
#

looking

#

can i specify version while creating setupintent?

finite mortar
#

The docs link I shared above explains it