#shriefmohamed

1 messages · Page 1 of 1 (latest)

spare flickerBOT
long hamlet
#

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.

small plume
#

"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

long hamlet
#

you can't use that link, it is not part of the public API.

small plume
#

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 ?

long hamlet
#

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

small plume
#

you mean should i depend in payment_intent.requires_action webhook

and use client_secret to confrim payment using stripe js ?

long hamlet
#

yep! check out the doc I linked too which explains the process in detail

small plume
#

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

long hamlet
#

I don't think we have a way to configure that no

small plume
#

last thing regrdin client_secret for 3d secure cards

is there expiration time for it ?

long hamlet
#

the client_secret does not expire no