#shashankzade_76087
1 messages · Page 1 of 1 (latest)
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.
- shashankzade_76087, 3 days ago, 7 messages
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_NBzCqB0VKX39e0
You just need to remove payment_method_types from the request body
keep just payment_method and return_url
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
If you don't explicitly specify payment_method_types when creating the PaymentIntent you don't need to specify it when confirming your request
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
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.
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
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
I want to know what am i doing wrong in the second one
You are sending payment_method_types when confirming the payment
then why is the 1st one working even when i pass payment_method_types
You need to update your integration according to this
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
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.
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
So you can create the payment intent with payment_method_types and when confirming the payment you can pass the same option
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
When you create the payment_intent you specify payment_method_types: ['card] same thing you are passing when confirming the payment intent
oh so we can pass payment_method_types: ['card] in create intent without payment method
But the receommended flow is to remove payment_method_types from all calls and manage that from your dashboard. It's up to you
yes
ok will try this out to see if it works