#madclaws
1 messages · Page 1 of 1 (latest)
Hi there 👋
Posting the question here for sake of simplicity:
Hi, we are implementing auto-charging user from our backend. So the way we are doing it is creating an invoice-items linked with a customer, then include pending_invoice_items in create-invoice . Payment method details already captured for the customer.
So when we create invoice with auto-advance = true, after 1hr stripe tries to auto-charge, but we are getting failed, and couldn't see any reason (will attach the screenshot). But then we try to manually did the retry charge Stripe sends payment email to the customer (since the bank need 3DS and customer is in India). Kindly need some help on why it didnt send email first time.
Thanks
Hi there, catching up here
On this invoice, you're wondering why the payment failed. Is that correct?
Yes, payment failed, when Stripe try to do it automatically after 1hr of invoice creation. But Stripe sent email to pay , when i explicitly tried Retry charge button from dashboard.
Ideally i expected Stripe would send email to pay automatically after 1hr, which didnt happen.
Stripe sends mail because the User is in India and the Amex required 3DS
that's fine
I see, thank you for clarifying. As you've suggested the reason why the payment failed initially is because this is an Amex card and required 3DS authentication. For automatic charging, Stripe does not send an email, it's discussed here: https://stripe.com/docs/invoicing/automatic-charging. Then, when you manually click on 'Retry' it sent the email to complete 3DS.
Any workaround for here, you can think of?
For more info on the initial discussion (which happened 1 month ago)
#1039434645579771955 message
specifying our actual use-case
Can you provide the summary here for me please?
Sure
So our use case is to charge user on certain times, but not a subscription type. So the approach we took according to the previous discussion was to create invoice-items then include it in the newly created invoice, both are linked with customer_id.
invoice is automatically_charged: true and auto_advance: true
From looking at that thread, it sounds like you're trying to set up off_session for invoices without using subscriptions?
I think what you might be looking for is here: https://stripe.com/docs/invoicing/india-emandate-guide#use-mandate-invoice. You'd need to use the Setup Intents and generate a mandate/ handle 3DS, then, you can use that mandate when creating the invoice: https://stripe.com/docs/invoicing/india-emandate-guide#use-mandate-invoice
I see, will checkout this. Also i guess i have to also check the extra setup for europe etc , stated in the docs right? for global invoices
Yes, the compliance process is different across European countries and the doc., you're referring to https://stripe.com/docs/invoicing/global-config-guide, is talking about Business-to-Business (B2B).
Also the approach i follow currently (which is invoive-items + invoice) is good, or Invoice Pay api approach is better?
to be clear, our ideal scenario is Stripe to charge user directly than sending email to user to pay (which is fine, if there are certain restrictions)
Your current flow should work fine, this https://stripe.com/docs/invoicing/india-emandate-guide#use-mandate-invoice discussed here where you pass the mandate on the invoice creation.