#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello daniyal_11692, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• https://discord.com/channels/841573134531821608/1164164883902898287, 0 days ago, 41 messages
• https://discord.com/channels/841573134531821608/1164172324468178964, 0 days ago, 3 messages
Let's chat here
ok
this is how i'm creating setup intent. $intent = \Stripe\SetupIntent::create([
'customer' => $customer->id,
// 'on_behalf_of' => $integration->stripe_user_id,
'automatic_payment_methods' => [
'enabled' => true,
],
]); how can i specify api version in here?
Will what come after your code block?
the ss you shared
i want to migrate my app from card element to payment element, i've implemented all the frontend related steps but the methods like affirm and klarna are not showing up, they are also enabled in my testmode dashboard
this is what i'm trying to do
you'd pass the ['stripe_version' => xxxx] as the third argument in your code
ok
getting error code 1323 after this: $intent = \Stripe\SetupIntent::create([
'customer' => $customer->id,
// 'on_behalf_of' => $integration->stripe_user_id,
'automatic_payment_methods' => [
'enabled' => true,
],
['stripe_version' => 2023-10-16]
]);
it needs to be the third argument, not the second
it is the third in create array [customer,automatic_payment_methods,stripe_version]
You're passing it in as part of the first parameter
'customer' => $customer->id,
// 'on_behalf_of' => $integration->stripe_user_id,
'automatic_payment_methods' => [
'enabled' => true,
]], second, third ]```