#ubi

1 messages ยท Page 1 of 1 (latest)

gaunt summitBOT
olive citrus
#
pi_3NIbxjGnI4RXc2fN0urLwQYl
quiet stag
#

Do you mean receipt of the PaymentIntent?

olive citrus
#

Intent: once I collect the Payment, I would like to get the Receipt associated with that transaction to show to the user the Receipt Number without having to create a receipt number myself

quiet stag
#

Yes, please look at the Charge object inisde the PI and the field above

olive citrus
#

Hold up, let me check

#

for some reason "invoice": null, so I am not sure

#

maybe it is due to test mode?

quiet stag
olive citrus
#

ahhh so I need to read latest_charge then get the info I want then

#

let me try that!

#

I am sorry for misunderstanding the situation, here is what is tricky

I searched for the lastet_charge then look into the charges and the invoice: null

#

My apologies for reasking the same question, I am honestly a bit lost

quiet stag
#

Don't worry about invoice.

#

and expand latest_charge

olive citrus
#

And from there I can get the receipt number?

#

I see the receipt url but i am not sure if I can expan the receipt as well

#

I am trying to get that!

#

Which I am guessing is receipt_number

#
"receipt_email": "yordis.prieto@gmail.com",
        "receipt_number": null,
        "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xRExXOVJHbkk0UlhjMmZOKJrF4KMGMgaUaj8XMkA6LBbXbXcpF2lDxqmauWeC1yyOrpoBch_FDEgnwfJfr5VnWC8O1aAMrma5FrKC",

For some reason is null as well

quiet stag
#

hmm, but if you open the url in receipt_url, what did you see?

olive citrus
#

it works, it is there, but I need the number to show in our UI

#

we have a Confirmation screen where we show a "Confirmation Number" which ideally would be that receipt_number value

quiet stag
#

This is the transaction number that appears on email receipts sent for this charge. This attribute will be null until a receipt has been sent.

olive citrus
#

well ๐Ÿ˜ญ

#

I guess I can either ditch the idea of the Confirmation Number, or generate one myself which I rather avoid