#shriefmohamed
1 messages · Page 1 of 1 (latest)
hi! what links exactly? usually there is not a link. To complete 3D Secure you need to call functions like confirmPaymentIntent in stripe.js on the frontend with the customer.
"next_action": {
"type": "use_stripe_sdk",
"use_stripe_sdk": {
"source": "src_1OATTOH8EXj02kzyKF4Oiv6G",
"stripe_js": "https://hooks.stripe.com/redirect/authenticate/src_1OATTOH8EXj02kzyKF4Oiv6G?client_secret=src_client_secret_pRZeJQ2OOiCC4eT29TnBNkyj&source_redirect_slug=test_YWNjdF8xSjlXcHVIOEVYajAya3p5LF9PeVFLZEFrUnM2SmM0bXRLOUJWWXFHNjdERDVzRkhW01001WHOB86L",
"type": "three_d_secure_redirect"
}
},
if you visisted the link in stripe_js you can confirm authentication/decline
asking for expiration for this link
you can't use that link, it is not part of the public API.
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-next_action-use_stripe_sdk
The shape of the contents is subject to change and is only intended to be used by Stripe.js.
you can't assume anything about that JSON object, you can't assume it will have a link(it actually doesn't have a link most of the time), and you can't assume anything about it's expiration time. You just can't use it.
so if our system doing background job for recurring and user is registered 3d secure card
what should be the case ?
i need to send link. to him to confirm to pay recurring ?
you'd detect that 3D Secure is required and contact the user to come back to your site, and then you use stripe.js on a page on your site
you mean should i depend in payment_intent.requires_action webhook
and use client_secret to confrim payment using stripe js ?
yep! check out the doc I linked too which explains the process in detail
Thanks @long hamlet ❤️
another question please
i'm using billing portal sessions to give user ability to add cards to his account.
There's button displayed go to my account after adding cards, can i change it to redirect to mcledger directly ?
i need to same action for return to Mcledger
I don't think we have a way to configure that no
last thing regrdin client_secret for 3d secure cards
is there expiration time for it ?
the client_secret does not expire no