#jm-last4

1 messages · Page 1 of 1 (latest)

visual wigeon
#

Hi there, can you send me the setupIntent ID?

upper hull
#

the problem is that I'm not sure how to access the setupIntent ID from the invoice object.
I can get individual card last4s from paymentmethod.List, but I can't get them linked to invoices.

Is there a way to track invoice -> payment used?

visual wigeon
#

Or you can share with us the invoice object? btw my shift is ending, my colleague will join this thread soon to support you.

upper hull
#

Thanks for your help Jack

#

invoice ID is : in_1KLka1DybsCKfiEbX8s1pWMi

brisk mortar
#

Hi, I'm taking over this thread!
In the Invoice there is a charge object, and in the Charge there is a payment_method_details object that contains information about the card (including the last 4 digits used).

upper hull
#

Hello! I just tried expanding "charge" and got a nil return value.

brisk mortar
#

In the invoice you shared, the amount paid is actually $0, so there is no charge in that case (no credit card was actually used).

upper hull
#

okay that sorted things out. So the amount captured was too small, so it got transferred over to the next billing period. so a charge is a nil value if amount paid is $0.

#

I see the card object with last4 values for a positive amount paid invoice. Thanks