#Maitry-PaymentIntent-next-action

1 messages ยท Page 1 of 1 (latest)

granite meteor
#

Hello ๐Ÿ‘‹
Can you explain your current flow? Yes this is expected response for 3DS flow.
If you're using Stripe.js client-side, it should automatically take care of it for you

grim plover
#

I want to hold money for 2 to 3 days. So for that i called api https://api.stripe.com/v1/payment_intents with following request params. amount:123
currency:dkk
capture_method:manual
payment_method:pm_***7
customer:cus_************id
confirm:true
confirmation_method:automatic . I am using 4242 4242 4242 4242 for testing it.

granite meteor
#

are you following any specific guides?

grim plover
granite meteor
#

what are you using client-side?

grim plover
#

I am just try to run this api using postman. once successfully work in it then i will apply in Node.js

granite meteor
#

Ah okay I see.
Typically you'd see this handled by client-side by showing a 3DS modal
However, this isn't a 3DS card
Can you share the PaymentIntent ID?

grim plover
#

yes sure. this is PaymentIntenet ID pi_3KlZfvSA92As0Ced1uOTIOPn

#

can you please help me regarding 3d secure card issue. so i can able to capture payment inetent.

granite meteor
#

Looking into it
Server is a little busy today

grim plover
#

ok please look into it.and provide help. thanks

granite meteor
#

yeah it seems like it is triggering the 3DS flow
The payment method pm_1KkpvuSA92As0CedJILuetJ7 is a different card than 4242424242424242

#

you can also just pass in pm_card_visa instead of the actual payment type to test this flow

grim plover
#

https://api.stripe.com/v1/payment_intents
amount:500
currency:gbp
payment_method:pm_card_visa
confirm:true .

I used this params still i received this error.

"next_action": {
"type": "use_stripe_sdk",
"use_stripe_sdk": {
"type": "three_d_secure_redirect",
"stripe_js": "*****",
"source": "src_
"
}
},

granite meteor
#

Can you share the PaymentIntent ID?

grim plover
#

yes sure. This is payment intent id. pi_3Kla9gSA92As0Ced1EVpfWrU

granite meteor
#

ah gbp currency
can you try usd?

grim plover
#

yes i tried usd still same error. PaymentIntentID with usd option pi_3KlaEZSA92As0Ced0AMQuViR

granite meteor
#

or try changing the payment method to pm_card_threeDSecureOptional

grim plover
granite meteor
#

I am not sure why it is enforcing 3DS for all the cards here
let me take a quick glance at other properties

grim plover
#

ok

granite meteor
#

Is your test account located in India?

grim plover
#

yes

granite meteor
#

3DS is mandatory for Indian businesses.
https://support.stripe.com/questions/3d-secure-authentication-for-international-card-payments-to-indian-businesses
So unfortunately you won't be able to test this via Postman

grim plover
#

ohhh okk...so how can i run payment intent demo with 3DS?

granite meteor
grim plover
#

ok thanks. i will check and try to implement. If i found any issue then let you know.

granite meteor
#

NP! Good Luck ๐Ÿ™‚