#brianterraenergy
1 messages · Page 1 of 1 (latest)
Can you share the checkout session id where payment_intent is null?
Sure: cs_test_a1tSsFI9kuHkBsM3F0mmZtfR8ZnaHBunICjUDYRsAvjC8lzmqagoZJntgC
That was a checkout session created with the sandbox.
Got it. Can you share the us session id too?
Also, just curious, why are you relying on the PI id?
Hmm I don't have the session id on hand, this checkout session was created yesterday.
And the session id doesn't get returned in the response of the checkout session creation
This id is saved internally so when the user gets redirected to the "success_url" or "cancel_url" we know what charge this belongs to.
Ahh the US session id haha, here it is: cs_test_a1twc2hWD4eFQjalTxxORXnTHhnHDdpby2aaDtvBpj0ElOsokwDWeYKX2J
So the us checkout session also shouldn't have the payment intent rendered at first
Shouldn't show until customer completes payment
Oh that one never had payment completed either
Looking
In the US checkout sessions we create, we do get a payment_intent id by default
Thank you!
Ah I think it's because you made the Mexico request on api version
2023-10-16
And the US one on
2020-03-02
Behavior changed across api versions
Ahh ok, is the api version handled directly in the account?
We are using the same SDK for both countries.
Yeah the account default api versions are different
So I would recommend upgrading the older one so the two match
That way you get consistent behavior
Perfect, thank you for your help! To update the api version can I do this directly in the developer dashboard or do I need to request this from Stripe sales rep?