#shashankzade_76087

1 messages · Page 1 of 1 (latest)

idle frigateBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

quiet pasture
bright chasm
#

req_NBzCqB0VKX39e0

quiet pasture
#

You just need to remove payment_method_types from the request body

#

keep just payment_method and return_url

bright chasm
#

we are using same setup at a different place where its working

#

can you check whats the difference berween those two

#

Look at this request req_41AeXfnaA2HqWk where i am sending payment_method_types and its working fine

quiet pasture
#

If you don't explicitly specify payment_method_types when creating the PaymentIntent you don't need to specify it when confirming your request

bright chasm
#

can you take a look at this intent pi_3OhsxHEziZE4klTY0eXxjOQw where we have not specified any payment_method_types while creating its still not giving any error

quiet pasture
#

Yes I see, I'm not sure what happened in your payment configuration on your dashboard

#

But in order to make sure and not have this probleme in all cases

#

you need just to remove payment_method_types when confirming the payment intent if you didn't created the payment intent with it.

bright chasm
#

i dont want to change an existing framework for this

#

if you look at this intent pi_3OhsxHEziZE4klTY0eXxjOQw there is no issue here and everything is working as expected but if you look at this intent pi_3Oht3tEziZE4klTY10x5fxzH we are facing issue

quiet pasture
#

The framework needs to be built according to the Stripe API if you are using it.

#

The correct appraoch is to remove payment_method_types when confirming a payment intent

bright chasm
#

I want to know what am i doing wrong in the second one

quiet pasture
bright chasm
#

then why is the 1st one working even when i pass payment_method_types

quiet pasture
#

You need to update your integration according to this

bright chasm
#

I would like to know why pi_3OhsxHEziZE4klTY0eXxjOQw intent was captured successfully even when i passed payment_method_types before making changes to our implementation

quiet pasture
#

It seems something changed in your dashboard payment configuration.

#

To make sure that this issue won't happens again. You don't need to specify payemnt_method_type if you don't create the payment intent initially with.

bright chasm
#

we use stripe npm packages can this be an issue with package version because one module is using a different package version

#

we only want to allow cards on our payment methods thats why we pass it in intent call

quiet pasture
bright chasm
#

but passing payment_method_types in confirm intent is giving us error

#

when we create intent we dont have a payment method we attach it after creating an intent

quiet pasture
#

When you create the payment_intent you specify payment_method_types: ['card] same thing you are passing when confirming the payment intent

bright chasm
#

oh so we can pass payment_method_types: ['card] in create intent without payment method

quiet pasture
#

But the receommended flow is to remove payment_method_types from all calls and manage that from your dashboard. It's up to you

idle frigateBOT
bright chasm