#madclaws

1 messages · Page 1 of 1 (latest)

fathom barnBOT
lyric wing
#

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.

fading cedar
#

Thanks

jaunty fiber
#

Hi there, catching up here

#

On this invoice, you're wondering why the payment failed. Is that correct?

fading cedar
#

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

jaunty fiber
#

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.

fading cedar
#

Any workaround for here, you can think of?

#

specifying our actual use-case

jaunty fiber
#

Can you provide the summary here for me please?

fading cedar
#

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

jaunty fiber
#

From looking at that thread, it sounds like you're trying to set up off_session for invoices without using subscriptions?

fading cedar
#

yes, exactly

#

since our use case doesn't looks like subscription

jaunty fiber
fading cedar
#

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

jaunty fiber
fading cedar
#

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)

jaunty fiber