#Alex-PaymentId

1 messages · Page 1 of 1 (latest)

rigid niche
#

Hi there, can you send me the request ID?

slim thicket
#

i got that as an exemple

#

that one i didnt receive the receipt_number

rigid niche
#

Can you send me the invoice ID?

slim thicket
#

pi_3KVVdJJbzvSIR6cj1YtIvZNU

#

that ???

rigid niche
#

This is Payment Intent ID

rigid niche
slim thicket
#

cs_live_b1j7RawysJqkjsPoaTVLcHzdJnvBiWYC5JGYE0R5kZM7S0cZiXVu4BtMRA

rigid niche
#

This is the checkout session ID.

#

The receipt_number is a property can be found in invoice, refund or charge object. So I'd like to know which kind of object are you interested in

slim thicket
#

yeah i search in charges.data.0.billing.receipt_url

#

and it return NULL

rigid niche
#

OK. and from which object did you get the charges list? the payment intent?

#

btw, receipt_url is the property of charge object, so you should get it from charges.data.0.receipt_url instead of charges.data.0.billing.receipt_url

slim thicket
#

i get it in the payment_intent.succeeded

slim thicket
#

Ive updated my API on stripe i was running a really old version

rigid niche
slim thicket
#

i know that

#

but i need the receipt_number

#

not the receipt_url

rigid niche
#

I can see the receipt_number in the charge object of pi pi_3KVVdJJbzvSIR6cj1YtIvZNU

#

Can you check again?

slim thicket
#

Ive just found out the problem

#

The API wasnt returning the receipt_number because i didnt activate the email successful payment

rigid niche
#

Yes, it'l null until a receipt is sent