#adaxer-checkout-failedpayments
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I'm goind to need much. more detail if I'm going to help.
- What Stripe APIs are you using?
- How is your server collecting payments from your customers?
- Do you have an example ID for the failing payment?
- I'm using the following:
'checkout.session.completed'
'invoice.payment_succeeded'
'invoice.payment_failed'
'customer.subscription.deleted'
- I'm sending them to stripe by creating a checkout session.
- pi_3OiwKLEKarudGTfP0fyoPwYv - This is an example of it happening to one of my customers.
It usually looks like it's when a verification step from the user is needed. Not 100% though.
- Those are events but I can guess you are using Checkout Sessions with
modeset tosubscription
Checkout Sessions expire after 24 hours by default.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-expires_at. Are you saving/reusing the Checkout Sessions?
I'm never setting the expires_at timestamp, does that mean that I am reusing the session?
This is the code that creates the checkout session:
line_items=[
{
'price': price_id,
'quantity': 1,
}
],
mode='subscription',
success_url=request.build_absolute_uri('/checkout/success/'),
cancel_url=request.build_absolute_uri('/checkout/error/'),
metadata={
'user_email': user_email,
'plan': plan,
},
allow_promotion_codes=True,
)```
No, if you never set it then it will expire by default.
Looking at the payment intent you referred to, your customer used a payment method that required 3DS authentication. https://dashboard.stripe.com/logs/req_nw8VY6WoSwJG6Q
They do not appear to have completed the authentication
So it's on their end? Or is there something I can do to resolve this - or pheraphs prevent it?
Based on the example you gave, this is on their end. The bank that issued their payment method required additional authentication and they did not complete it.
That's very odd. 2/3 of my users get this exact error. I have a hard time believing they all do not complete it, even more when this user tried 5 times.
Looking at your account logs, I do see customers attempting to use checkout URLs that are no longer active as well as plenty of failed payments
Can you see any other problem that may account to this?
A number of the failed payments look like generic card declines, in addition to the failed validation
Welp, that's unlucky I guess? I can't see it being any different in the future though.
This is my first time using stripe so I don't really have a reference to any other website selling subscriptions, maybe this is common?
IT depends on how you secure your site. Exposed checkout pages are often used to test the validity of stolen card numbers
We have some details on how card testing works here: https://stripe.com/docs/disputes/prevention/card-testing
Okay thank you!
I'm happy to shed what ๐ก I can ๐