#thehollytoats_ece-customer-receipts

1 messages ยท Page 1 of 1 (latest)

wispy vaporBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299407724823445544

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

meager dove
#

Hello ๐Ÿ‘‹

What specific element are you using?

woeful wharf
#

I use google and/or apple pay

const expressCheckoutOptions = {
  emailRequired: true,
  buttonHeight: 50,
  buttonTheme: {
    //applePay: 'white-outline'
  },
  paymentMethodOrder: ["applePay", "googlePay"],
  paymentMethods: { applePay: "always", googlePay: "always" },
  layout: { maxColumns: 1, maxRows: 0, overflow: "never" },
}
const elements = stripe.elements({
  captureMethod: 'manual',
  mode: 'payment',
  amount: price_to_play_one + operator_fee_fix + Math.round(operator_fee_percent * price_to_play_one/100),
  currency: p.c,
  appearance,
})
meager dove
#

This has nothing to do with Checkout Sessions and the functionality is entirely different.

#

I know it can be confusing because we name things in such a way that they seem related

#

There is no option to provide customers with an Invoice as a result of payment using the Express Checkout Element

woeful wharf
#

I know they are different. I tried the checkout session to proof that the setting of my stripe account is correct, as the customer get the invoice through email.

#

If I use the Express Checkout Element, what should I do so the customer get the invoice through email?

meager dove
#

That is a feature of Checkout Sessions

#

You can send a receipt via email but that is not the same thing as an Invoice (which has legal implications)

woeful wharf
#

How do I send the receipt via email?
Do I need to write my own code to create the receipt and send the email by my own email server?

meager dove
#

No this is a setting you can enable in your Stripe Dashboard

#

Wait, wrong link

woeful wharf
#

Is this setting?

meager dove
#

Yes

woeful wharf
#

I have enabled it but the customer still doesn't get it when I use Extress Checkout Element.

meager dove
#

Can you share the payment intent ID for the payment where the customer did not receive an email receipt? It's safe as no one can use it but you and Stripe staff

woeful wharf
#

give me a min

#

I get a few payment intent id, but I am not sure which one that are using Express Checkout Element vs Checkout Session.

#

Is it okay if I give you multiple payment intent?
most likely all of them are using Expres Checkout Element.

#

pi_3QDlrGLyyVuDV3Wz1qaA5yhT
pi_3QDf3oLyyVuDV3Wz192anPAK
pi_3QDezcLyyVuDV3Wz1HxMisiQ

meager dove
#

I can check them, taking a look

#

Okay so looking at the first one, and I can see the issue right away.

#

Hmmm... wait a sec

#

Okay so you do still collect the email address but that is saved in the charge.billing_details

woeful wharf
#

In this case, I get the email from google/apple pay. I can pass the parameter.

#

However the above is the charge_object. Can I set the the receipt_email in the payment intent creation?

meager dove
woeful wharf
#

thank you. I think this will work.

#

I'll try both, at the payment intent creation and if it doesn't work, will add it in the charge object.

#

Thanks again.

meager dove
#

Sure thing, happy to help ๐Ÿ™‚

wispy vaporBOT