#Redrigz - setup intent
1 messages ยท Page 1 of 1 (latest)
what i understand is when i get the event 'payment_intent.requires_action' i should use 'confirmCardPayment' function on UI part, and for the event 'setup_intent.requires_action' which function i should use ? i tried handleCardAction but i get an error
thanks in advance
Still looking, I thought these functions would work for either
Are you following any particular guide here?
no ๐ i don't find it
Sounds good, will see what I can find and will get back to you
Are you using the Card Element or Payment Element here?
For reference
Payment Element: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Card Element: https://stripe.com/docs/payments/accept-card-payments
card element
i'll tell u the details:
1- create a subscription with trial period with 3d secure card
2- i get two events : 1- subscrition created / 2 - setup_intent.requires_action
i'm stuck what i should do in this event! the user should receive a popup i think to authorize and confirm the setup
so what i want to know which function i should use in my website?
Can you send me an example SetupIntent that you have been testing with here?
It might help me to see what calls you are making already
Can you try using confirmCardSetup? https://stripe.com/docs/js/setup_intents/confirm_card_setup
i already tried it,
Error: Uncaught (in promise): IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a PaymentIntent client secret. You specified: a SetupIntent client secret.
IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a PaymentIntent client secret. You specified: a SetupIntent client secret.
For confirmCardSetup? Can you try that again, go to your account's API logs, and send me the request ID (req_123) for a time that you saw that happen?
okey i'll see
I have tested it now, and I will tell you what happened,
I tried this confirmCardSetup function, it works fine the customer received a notification in his banking application and he authorized and the payment succeeded, but the problem is that Stripe doesn't show the user that he has to validate by displaying a popup
That is surprising, that call should display the 3DS modal as well. Looking in to what else you might need to use here
Yeah confirmCardSetup definitely should do this.
Do you have a public test page that I could see this behavior on?
We are in prod that's why
in test it works fine
the customers are using the app now
Can you send me the ID of the payment that a user saw this on? (pi_123)
this is the response from setup_intent :
Hi ๐ I'm stepping as @tawdry jasper needs to go.
The object you shared with us is a Setup Intent, not a Payment Intent
So the error message is correct.
You would want to use the .confirmCardSetup method instead: https://stripe.com/docs/js/setup_intents/confirm_card_setup
Hi, okey that's what I did, I'm using now confirmcardSetup and the client received a notification in his bank account but it doesn't display 3ds model to inform the user that he should authorize the payment
Well for the setup intent you supplied I can see a 3DS authentication event that succeeded
Yes because he accepted the payment from his bank account
But the problem is that confirmcardSetup doesn't display 3ds model in the UI
Do you have a test front-end where I can test your flow?
In mode test it works fine
But using test cards
But with real card like BNP doesn't work properly
In those cases you are saying a 3DS modal is never shown? There's no overlay at all?
no overlay at all
this is the code in the website
when i receive client_secret from webhook i send it to UI and then i use it for the function 'confimrcardSetup'
That is the wrong JS function
In that snippet you are calling confirmCardPayment
You need to call the function confirmCardSetup instead
NP. They are very similar
yes ๐ฅฒ
Redrigz - setup intent
this is the result
What is the call to authenticate?
this is our fault, now it works fine, i really thank u
๐