#Matty - 3D Secure
1 messages ยท Page 1 of 1 (latest)
Hello! Not sure I understand your question. use_stripe_sdk is an internal implementation detail on Stripe's end that your should ignore completely. Can you provide more details?
Maybe it's just easier if I give you the payment intent. ๐ pi_3KRKq3BBamLIIR3Z0kSHRGgo
This is saying "The PaymentIntent needs to be authenticated by 3D Secure" but we aren't sure how to go about that. I assume we can provide a page for the customer using the API, but I am not seeing how to do that without a next_action.redirect_to_url being present.
Okay, I'm looking at it. It requires action as you indicated.
I tried using this, but the redirect_to_url is null.
https://stripe.com/docs/payments/3d-secure#check-status
What's the context of this Payment Intent? Is it a payment being initiated when the customer is present? Is it an off-session payment?
That's an off session payment.
The card was initially setup as an off session payment.
You need to set off_session to true on that Payment Intent then: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-off_session
That will prevent the Payment Intent from entering the requires_action state and return a decline when authentication is required. You can then bring the Customer back on-session and have them attempt payment while they're present and able to complete authentication.
Does that require a new payment intent?
No, you can use the existing Payment Intent.
My apologies. I'm confused by the "bring them back on session". I assume that means just bring them back and have them start the transaction again. That payment method has been used for off_session in the past: pm_1JqPOABBamLIIR3Z5fjVwPdJ
Yeah, that's correct. You send them an email or whatever to get them to come back to your UI so you can use Stripe.js to confirm the payment client-side.
OK. I think I see what you were getting at. The API call you mentioned above is where to start using the off_session flag for the customer. ๐
If you're confirming a Payment Intent while the customer is not present you need to set off_session to true on that API call, yeah.
Thank you for the help! That's exactly what I needed. So much simpler than I expected. ๐
Ah, here are the docs I couldn't find earlier about this: https://stripe.com/docs/payments/save-during-payment?platform=web#charge-saved-payment-method
I just didn't scroll far enough on the original link you gave me. It was just this bit of code:
Ah, yep. ๐
Well, that's for a Setup Intent, but there's the same thing for a Payment Intent: https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached