#Kasuni

1 messages ยท Page 1 of 1 (latest)

mellow stumpBOT
shell tinsel
umbral oriole
#

Hi i used a payment method which used this card - 4000002500003155 , but after payment submit , i couldn't see the payment intent succeeded event.it is showing payment_intent.requires_action event lastly.
what i want to do is record the event after charge is received from the card

#

can you help me with this?

shell tinsel
#

Can you share the PaymentIntent ID?

umbral oriole
#

pi_3MblQO4f6cSj5akz11yRbMnb

#

i used stored card to make a payment

shell tinsel
#

Ah gotcha. How exactly did you store the PaymentMethod?

#

Looks like you created a SetupIntent first and then generated a PaymentMethod
And then used the PaymentMethod (pm_xxx) to create another PaymentMethod?

umbral oriole
#

1.firstly i create a customer
2. then create a setup intent to that customer
3. after that confirm setup intent and go the payment method

#

yes while i am paying from stored card i am cloning payment method

#

to connect platfrom

shell tinsel
#

Gotcha. Also looks like you're not passing off_session: true when creating the PaymentIntnet

umbral oriole
#

oh is that required?

shell tinsel
#

Is your customer on-session for this payment? If not, then yes that's required

#

does that help @umbral oriole ?

umbral oriole
#

Hey i am checking

shell tinsel
#

๐Ÿ‘

umbral oriole
#

Hi it was worked ,after putting off_session true

#

can you bit explain what has happend if customer is on sesion?

shell tinsel
#

If you don't specify on-session/off-session then we default to customer being on-session which means that if 3DS was triggered then customer would be around to complete the authentication.

If you set off-session that means customer isn't around so we mark this payment as merchant-initiated transaction which tells the issuers/networks to not trigger 3DS auth if not required.

More info here
https://stripe.com/docs/payments/setup-intents#:~:text=For users impacted,and your customer.

umbral oriole
#

can we test on session customer payment with 3d secure ?

shell tinsel
#

Not sure what you mean by that?

#

Can you elaborate?

umbral oriole
#

got this error

#

can't we authenticate in test environment?

shell tinsel
#

Can you share the PaymentIntent ID for this one?

umbral oriole
#

sure

#

pi_3MbmWKQFyheAEJDj1Psc3zQ0

shell tinsel
#

Ah so in this case, you're setting off_session: true but the PaymentMethod does need 3DS auth to complete the transaction but since you're performing server-side confirmation, there's no way for your customers to authenticate really. So the payment method is getting declined.

You'll need to bring your customers back on-session and confirm the PaymentIntent client-side so that they can perform 3DS auth

umbral oriole
#

can't we do it on test environment?

#

(client authentication part)

shell tinsel
#

You can

#

You'll return the PaymentIntent's clientSecret to your client-side code and then use Stripe.js to confirm the Payment

umbral oriole
#

Thank you i will check ๐Ÿ™‚

shell tinsel
#

๐Ÿ‘