#cloutfroggo

1 messages ยท Page 1 of 1 (latest)

woven juncoBOT
snow canopy
#

๐Ÿ‘‹ happy to help

#

where have you stored the order number?

mighty hornet
#

I want to use the receipt number on the email sent to the customer, I am using the stripe checkout that sends the email for me.

snow canopy
mighty hornet
#

When I search with the following code I get zero results. The receipt is in test mode and the code is using the test api key. I am not generating the invoices myself, stripe sends the receipt for me. Should I be generating them manually for this to work?

// id = "1517-7232";
let result = await stripe.invoices.search({
    query: `receipt_number:"${id}"`,
});
snow canopy
#

would you mind sharing the checkout session ID?

mighty hornet
#

cs_test_b15eJyRKwahniOpDZd9tZgMXu1QNBJEcNvIqkkE0Qg0PmJwyOwlzohiT3C

snow canopy
#

taking a look please bear with me

#

on your checkout session

mighty hornet
#

Thank you, this works perfectly ๐Ÿ‘