#teamie
1 messages · Page 1 of 1 (latest)
- Can you provide the request ID for the request where you attempted to to add a
receipt_email? - You can't
I was setting this up on my react frontend application
also i tried setting this up on my server but it didn't work
perhaps cause i made the requests with test keys?
The request ID would be helpful in figuring out what isn't work
Test keys do not matter here
const paymentIntent = await stripe.paymentIntents.create({
amount: total,
currency: 'php',
description: 'Lux Woodwork Store',
payment_method: 'pm_card_visa',
payment_method_types: ['card'],
receipt_email: userEmail,
});
Where can i get the request ID?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
- There was no receipt email passed when confirming this request.
- There was a receipt email on the Payment Intent already
That is because I couldn't set that up on the frontend which is why I asked how to do that.
- It is on the intent because I set it up on the server like i showed with the snippet above
Okay so what I need to see is the request where you try to include the receipt_email parameter in the confirmParams and the API returns an error. That will be helpful.
Oh that's easy. It's nested too far. the confirmParams are not another key but the whole object after the client_secrect.
So copying your code snippet above it would be:
const paylaod = await stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: elements.getElement(CardElement),
},
receipt_email: 'test@example.com'
});
You mean you don't receive an email?
That is correct, we don't send emails in Test mode.