#rendaw

1 messages · Page 1 of 1 (latest)

peak spearBOT
twin spindle
#

Hi there, you mean you don't find a charge object from an invoice that is paid by a non-card payment method?

hoary scroll
#

I've only tested credit card payments unfortunately

#

I won't be able to test all payment methods, so I'd like to know I'm doing things the right way

#

Do you mean that all invoices will have a charge once paid? (or is that a safe assumption?)

twin spindle
#

Yes, an paid invoice will have a payment_intent, and an succeeded payment_intent would have a charge. I don't see a problem this flow

invoice -> payment_intent -> charge -> balance transaction

hoary scroll
#

Ah okay!

#

In my imagination, for a bank transfer for instance, the user could underpay and then pay again

#

and I was thinking that would lead to 2 balance transactions for a single invoice, and maybe 2x the stripe fee

#

or something

twin spindle
#

You can also test it out in test mode

hoary scroll
#

Ah yeah, I appreciate that

#

Even if I had a transfer though I wouldn't know which fields to use to trace it from the invoice

#

Is there any documentation that describes the relation between invoice/intent/charge/balance transaction in more detail?

#

Oh well I guess if it is in charge that would answer it

#

Anyways, thanks! You guys are awesome

twin spindle
#

I agree that our doc could be better, I'll pass along your feedback

hoary scroll
#

Thanks so much!

#

I spent a good while reading documentation, and your existing documentation is very much appreciated