#gopi_67606
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.
- gopi_67606, 5 minutes ago, 17 messages
- gopi_67606, 1 hour ago, 6 messages
- gopi_67606, 2 hours ago, 9 messages
- gopi_67606, 4 hours ago, 15 messages
- gopi_67606, 21 hours ago, 4 messages
- gopi_67606, 22 hours ago, 9 messages
and 3 more
hi! do you have more context or an example?
pi_3OCJ2SD6fLV2vwHg0Fp6RDEh Payment Id is getting failed
Can I know the reason?
My exceptation is I need to get authenticate popup right while doing the payment
I didnot got that
what code do you have to present that popup or handle this on the frontend?
const result = await stripe.confirmCardPayment(clientSecret, {
payment_method: paymentMethod.id,
});
I am using confirmCardPayment method in front end
cool. And what happens when you call that using the client_secret of that PaymentIntent?
It is going to be creating the default payment method for the subscription to generate the next invoice
Wait
I am not using any code to display the authenticate popup
well that would be the reason you're not getting a popup then.
What code I need to place?
confirmCardPayment should handle that and present 3D Secure, if you are using it correctly.
which is why I asked what happens when you call that using the client_secret of that PaymentIntent that you shared. I'd suggest debugging this a little on your end.
I am thinking the cardPaymentMethod is going to create the payment method for that user
I am wondering why the normal payment is going to failed
๐ taking over for my colleague. Let me catch up.
If I used the 3ds authentication card details for testing it will ask for popup dialog right for authentication?
yes that's correct
But I am not getting the popup dialog for the card number 4000003560000123
where did you get that test card from?
From stripe test cards only
you need to use our testing cards found here https://stripe.com/docs/testing
Please give me five mins I will share the link
you can use this one to test https://stripe.com/docs/testing#authentication-and-setup:~:text=longer require authentication.-,Always authenticate,-4000
The above link is used for ttestting the above card
ok but where do you see this card number 4000003560000123
it's not part of our test cards
I am able to see the test card in that link
oh these are country specific cards
perfect!
Even though why its getting failed?
what's the paymentIntent ID?
pi_3OCJ2SD6fLV2vwHg0Fp6RDEh
it's not failing, it just needs SCA
It will work in live mode with my existing code?
I am creating the payment Intent thats it with the below code
const paymentIntent = await stripe.paymentIntents.create({
amount: amount * 100, // Replace with the actual payment amount in cents
currency: 'usd',
payment_method: paymentMethodId,
confirm: true,
customer: customer.id,
off_session: true
});
the PaymentIntent you shared doesn't have an off_session: true param
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
No wait i will check again
This response I am getting with the above code
pi_3OCJsyD6fLV2vwHg0kdWCZF8 This is the payment Intent Id I have checked now itself
you're using a USD currency
Then?
Can You please explain me in detail
you haven't collected a mandate when creating the PaymentMethod for the currency USD https://stripe.com/docs/india-recurring-payments?integration=paymentIntents-setupIntents#testing:~:text=payment_method_options[card][mandate_options][currency]
The following currencies are supported only for international (non-IN) businesses: USD, EUR, GBP, SGD, CAD, CHF, SEK, AED, JPY, NOK, MYR, HKD.
you only have the possibility to use INR as the mandate currency
const paymentIntent = await stripe.paymentIntents.create({
amount: 2000000,
currency: 'inr',
customer: '{{CUSTOMER_ID}}',
setup_future_usage: 'off_session',
payment_method_types: ['card'],
payment_method_options: {
card: {
mandate_options: {
reference: '{{REFERENCE}}',
description: '{{DESCRIPTION}}',
amount: 2000000,
start_date: 1675238400,
amount_type: 'maximum',
interval: 'month',
interval_count: 1,
supported_types: ['india'],
},
},
},
});
this is an example of how to create a PaymentIntent to setup the future usage
once created you would pass the payment method to your existing code and it should work
with this limitation
Recurring transactions over 15,000 INR (or equivalent in other currencies) must go through AFA each time.
4000000000003220 This card number also failing while I am trying to create the payment Intent