#.sneakerdad

1 messages · Page 1 of 1 (latest)

civic martenBOT
opal wharf
upper python
#

mine is turned on though and when i go to each transaction, i dont see that an email is sent

zinc oracle
#

Test mode? Or live?

upper python
#

live

opal wharf
#

Can you share the ID of a payment where you saw that behavior?

civic martenBOT
upper python
#

pm_1NnMjRBQTa91NKS4spirA0Cp

opal wharf
#

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.

upper python
#

sorry not a dev so a little slower- working with my dev

64f88caf3582d19d9e13f473

opal wharf
#

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

upper python
#

i think i found one

pi_3NnMj5BQTa91NKS41y7YmuSn

opal wharf
#

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.

upper python
#

is there any documentation

opal wharf
#

I provided a link a couple messages up, and that is where I would recommend starting.

upper python
#

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?

velvet rock
#

👋 stepping in here as toby needs to step away

#

Are you using Payment Element here?

upper python
#

Brought my dev in

west lake
#

Hey bismarck! I'm doing the dev 👋

upper python
#

To answer your question- yes we’re using Payment Element

west lake
#

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.

velvet rock
#

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

west lake
#

Is expand for order details?

velvet rock
west lake
upper python
#

There’s no field I’m using - I’m just copying the name of the card from our end

west lake
#

Do you send the email from Stripe's portal?

upper python
#

Yeah

#

Are you wondering the field I put that into

west lake
#

Yeah, because I need to set that from the app

upper python
#

its just under payment details - the description

#

all good @west lake ?

west lake
#

Just found it, it's done in the payment intent

#

Yes, can get this working

west lake
velvet rock
#

Yep that works great

upper python
#

question bismarck - would email show up here in test mode if it was sending an email?

velvet rock
#

We don't send these emails in test mode

#

Unless you hit the "Send receipt" button manually

#

In order to not spam folks

upper python
#

got it