#.sneakerdad
1 messages · Page 1 of 1 (latest)
Hi 👋 sending receipts automatically is enabled by ensuring the toggle beside "successful payments" is turned on within this page:
https://dashboard.stripe.com/settings/emails
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
mine is turned on though and when i go to each transaction, i dont see that an email is sent
Test mode? Or live?
live
Can you share the ID of a payment where you saw that behavior?
pm_1NnMjRBQTa91NKS4spirA0Cp
That's a Payment Method ID, do you happen to have the ID associated with a payment such as the ID of a Payment Intent?
I'm looking at a Payment Intent related to that Payment Method, but want to ensure I am looking at a good example. The one I'm looking at so far is not including the receipt_email parameter along with the customer's email address, which leads me to believe those emails aren't being generated because we don't know where to send them.
sorry not a dev so a little slower- working with my dev
64f88caf3582d19d9e13f473
All good! Sorry, but that's not one of our IDs. Payment Intent IDs would for example start with pi_.
If your flow is directly creating Payment Intents, then it will need to be adjusted so that the receipt_email parameter is provided at some point to provide us with the customer's email address. This doc walks through that process and includes code snippets showing how to do that can be used as guidance:
https://stripe.com/docs/receipts?payment-ui=direct-api
i think i found one
pi_3NnMj5BQTa91NKS41y7YmuSn
Thank you, taking a look!
Yeah, we don't appear to have been provided an email address for that payment, so we didn't know where to send the receipt email and didn't.
I don't see an email address specified on the Payment Method being used, there isn't a Customer object being used, and there isn't an email address directly provided on the Payment Intent.
You will need to adjust your flow so that it provides us with an email address to use.
is there any documentation
I provided a link a couple messages up, and that is where I would recommend starting.
Got it
Question
From my developer - We changed the flow and removed the email address from the payment intent. How do we add the email address to the React Elements component?
👋 stepping in here as toby needs to step away
Are you using Payment Element here?
Brought my dev in
Hey bismarck! I'm doing the dev 👋
To answer your question- yes we’re using Payment Element
Yes, the Next.js Payment Element
Need to know how to add the email and ideally line items. Preferably in hidden fields or something similar.
Gotcha so yeah mostly you just want to use your own fields for this since Payment Element will only collect email if the Payment Method Type requires it.
When you create your Payment Element you can set email: 'never' so you don't duplicate collection. Then you can pass the email you collect to confirmPayment() so that it is added to the billing details of the PaymentMethod
For email: 'never' I'm talking about https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-email
Expansion is for expanding other objects within a response. See: https://stripe.com/docs/expand
@upper python How are you adding the order details when you manually update to send the receipt now? What's the field called?
There’s no field I’m using - I’m just copying the name of the card from our end
Do you send the email from Stripe's portal?
Yeah, because I need to set that from the app
Checking now
Just found it, it's done in the payment intent
Yes, can get this working
I see there's also a receipt_email on the payment intent. Is it OK for me to populate there instead of confirmPayment()?
Yep that works great
question bismarck - would email show up here in test mode if it was sending an email?
We don't send these emails in test mode
Unless you hit the "Send receipt" button manually
In order to not spam folks
got it