#elbek8935

1 messages · Page 1 of 1 (latest)

tribal sealBOT
#

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.

molten veldt
#

@lofty rune please try to use your existing open thread to ask follow up questions

#

it's the 3rd thread in a row :p

lofty rune
#

ohh, sure

molten veldt
#

thanks

lofty rune
#

we can keep this one

#

I will stick to this

#

since I posted it

molten veldt
#

yep I closed the other one

#

I don't really get the question, you just dumped the error with no context

lofty rune
#

I have the invoice open and I am calling pay api call

#

that is the response I am getting

#

could you check the log

molten veldt
#

Okay so this is you trying to pay an Invoice. What's the state of the PaymentIntent? What happened to its PaymentMethod? Why is this Pay Invoice call happening in the first place?

lofty rune
#

payment intent became cancelled I think

#

good question regarding pay invoice call

#

for example invoice is created as automatic

#

but say customer has some problems with card such as insufficient balance or no payment method

molten veldt
#

if the PaymentIntent is canceled then you can't pay that Invoice.

lofty rune
#

later if customer fixes it do I need to call pay api call or stripe takes care of it?

molten veldt
#

Sorry you're asking some meta questions but those are unrelated to the error you are getting right now

#

If you get your customer back on session to enter card details then you should call the Pay Invoice API afterwards while making sure to make their new PaymentMethod the default

lofty rune
#

when does new payment method gets created for an invoice since existing one is cancelled?

molten veldt
#

I'm sorry, this question doesn't really make sense. You're likely mixing up your vocabulary somewhere

tribal sealBOT
lofty rune
#

invoice's status is open

#

but its linked payment intent is cancelled

#

what would happen to invoice

lofty rune
molten veldt
#

My colleague @torn timber is going to take over and help you I have to run

torn timber
#

Hi @lofty rune I'm taking over this thread

lofty rune
#

thanks for your help

#

sure, lets go

torn timber
#

Looks like you were trying to pay the same invoice multiple times before, and all those payment attemtps were unsuccessful due to insufficient_funds

lofty rune
#

yeah

#

I am learning

#

so now intent is cancelled for the invoice

#

when does new intent gets created?

torn timber
#

This invoice is in live mode. I'd recommend you to use test mode for your testing.

lofty rune
#

We tested it, this happens when issues such as declined, not enough fund so forth comes up

#

for this particular case what do I need to given payment method is cancelled?

torn timber
lofty rune
#

makes sense

#

so invoice also gets automatically cancelled?

torn timber
#

No, this invoice is in open status, you can void it or mark it uncollectable.

lofty rune
#

I see, got it

#

Also Jack one last question. We create invoices with auto charge. This may fail when there is no payment method or card may get declined. Say later customer comes and adds a new payment method. Does stripe automatically retry to settle the invoice with new payment methods? Or I should invoke invoice/pay api?

torn timber
#

How does your customer add in the payment method? through customer billing portal?

lofty rune
#

yeah, from our platform

#

it uses checkout session and uses stripe element ui or plaid bank account linking

#

two possible optioons

torn timber
#

Do you have some examples (i..e, request IDs) so that I can understand how your add the new payment method?

lofty rune
#

yeah

torn timber
#

Got it! So you are using SetupIntent to collect a payment method from a customer.

lofty rune
#

or through plaid btok token

#

that is right

torn timber
lofty rune
#

yes, for cc I set that up

#

for bank I set up as a source on customer's invoice setting

torn timber
lofty rune
#

yeah

#

this is how I do for bank case

torn timber
#

Yes Stripe will use the newly collected source/payment_method for invoice payment.

#

If that's an one-off invoice, you need to invoke the invoice pay API. If it's a recurring invoice created by a subscription, Stripe will retry based on your settings.

lofty rune
#

it is one off

#

When do I need to retry? After new payment method is added?

#

since there many possibilities not sure how to cover all cases

torn timber
lofty rune
#

sounds good

#

thanks Jack

lofty rune
#

how about for invoices, our plaftorm uses invoices. How do we configure emails for failed invoiceS?

#

I see a config for Manage failed payments for subscriptions

torn timber
lofty rune
#

hmm

#

I don't see an option to email when invoice payment fails

torn timber
#

Thanks for waiting.