#Wik-Invoice

1 messages · Page 1 of 1 (latest)

abstract peak
#

HI there, so you want to know if the invoice is paid with customer's balance or not?

vocal cargo
#

yes

abstract peak
#

Got it. You can check if the invoice.payment_intent == null. If it's null that means no payment is required and the invoice is paid with customer's credit.

#

You can also check the starting_balance and the ending_balance of the invoice object and see if they are different.

vocal cargo
#

Amazing, thank you so much for your help. Stripe dev-help is just the best 🙏

abstract peak
#

Welcome! happy to help.

abstract peak
vocal cargo
#

Of course. I wasn't sure if it'd be better to ask here or if you prefer a new thread for every question

abstract peak
#

All good, usually we use the same thread to keep the context.

vocal cargo
#

One more thing: I want to test a prepaid card that should fail, like have $0 funds. Unfortunately the only prepaid testing card I can find is supposed to be successful. Do you know any preparid card number that I can use for testing this case?

abstract peak