#Hellruba
1 messages ยท Page 1 of 1 (latest)
I don't think it is trial related. Your understanding is correct that it should not ask for 3DS again if you are doing an off session payment like with a subscription. Trying to think of what might cause this
Do you have the ID of the test subscription that you are seeing this behavior on? (sub_123)
yes id: sub_1MAWy62SkO9a7OrGcKJ15QLP
Thank you, checking in to that subscription...
Apologies for the delay. The things that I am thinking to check here seem to be set up properly
No worries for the delay reading more documentation in the meantime to be sure i didn't miss a thing ๐
Quick question, what does your client side confirm code look like here?
I don't think that that is relevant because the setup intent has off session set up properly but it may help to know
the window opened for the 3ds?
That's the window i get when using the card mentionned above for the 3ds check of the card
Uh I more mean, if this is your custom page, what js code are you using to confirm this setup intent?
i use the stripe initiated with useStripe() hook and then await stripe!.confirmSetup({
elements,
redirect: 'if_required',
}); with elements being the elements retrieve from useElements() hook
const elements = useElements();
const stripe = useStripe();
result = await stripe?.confirmPayment({
elements,
redirect: 'if_required',
});
better to see that way ๐
Oh wait, I missed your detail about how the trial is ending here. Can you try this again but pass off_session: true when updating your subscription from the backend? https://stripe.com/docs/api/subscriptions/update#update_subscription-off_session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think 3DS might be required here because it is assumed the payment would be on session with that kind of change
oh didn't thought of that will check that out
It might be from that i guess, everytime we update a subscription if we expect it to be off_session we have to mention it?
or is it only specific on the trial case to mention it again since the payment will be applied?
it worked! ๐
When the trial end by itself from stripe, will it apply the previous off_session set during creation ? But otherwise thanks alot i would have been stuck around for hours ๐
Yes, when the end happens automatically from Stripe, we will signal that the charge is off session. I think that we do assume that API calls are from some user's on session action so you will want to mention that the action is off session via that parameter
I don't think it is just the trial case. Like even for a proration I think if you signal off session vs don't you will see that
alright thanks i will take note of that and make adequate changes then ๐
Awesome! Glad we could get to the bottom of that one. It had me stumped for a bit