#daniyal_11692
1 messages · Page 1 of 1 (latest)
this is the doc i followed: https://stripe.com/docs/payments/payment-element/migration?client=javascript
not sure about which PaymentIntent ID you are asking for?
The one you create in this step: https://stripe.com/docs/payments/payment-element/migration?integration-path=one-time&client=javascript#one-time-payment-intent
Hi @jade sage I opened the thread, do you have any follow up questions?
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
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.
let me comment it out and then check
But why are you using it?
i've commented it out but still Klarna, affirm does not show.
Could you please share the PaymentIntent ID pi_xxx?
$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
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
any recommend one in my case?
The latest one 2023-10-16
sorry but i'm using this one: apiVersion: '2020-08-27'
I see this SetupIntent was created with 2015-10-16
let me recreate and share the id
can you pls check against this: seti_1O2ZPiAAKdQR3wItrrezj3Gz
This was also created using an old API version
https://dashboard.stripe.com/test/logs/req_y9Er0acmw90RHW
You can check this in the dashboard
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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
The docs link I shared above explains it