#BruceWayne
1 messages · Page 1 of 1 (latest)
To email a receipt, receipt_email should be set instead, not customer email: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-receipt_email
hello
Can I set up customer email addresses in both places?
receipt_email and customer email
Is there any problem with this?
Hi there, you can do that. However, when the values are different, remember that the receipt email will be sent to receipt_email
Got it, then I want to know what the customer email is for? Collect billing information from customers?
Yes you are right, that's the billing details of a customer. And customer's email address will be displayed in invoice.
Got it, where do I fill in the product description when creating a checkout session?
Are you creating a product beforehand, or an ad-hoc product through the product_data hash? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
or an ad-hoc product through the product_data hash,this
line_items.price_data.product_data.description
Is it this one?
Yes you are right
If I have filled receipt_email
But I did not check the payment success and refund in the background-settings-customer mailbox, will the system still send email credentials to the customer?
What credentails do you mean?
and I don't understand you latest qustion, can you elaborate?
After I filled in the receipt_email, but I didn't check the two options of successful payment and refund on the dashboard,
In this way, after the customer successfully pays or refunds successfully, will Stripe still send the email certificate of successful payment or refund to the customer?
What Dashbaord? can you share with me a screenshot?
your dashboard. settings, in the customer mailbox
If I did not check these 2 options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
As explained in the API reference, If receipt_email is specified for a payment in live mode, a receipt will be sent regardless of your email settings.
OK,thanks
When the customer successfully pays or successfully refunds, which URL can view the credentials?
Receipts can be viewed in a browser, a URL
Still I don't understand what you mean by credentials?
This is the refund email. Which filed in the email is the credentials ?
How can my customer view this picture through a browser?
Will I be given a URL after the payment is successful? Or do we need to get this URL through the API ourselves?
OK. you can get the URL to this page from receipt_url (https://stripe.com/docs/api/charges/object#charge_object-receipt_url)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you can get the charge object from PaymentIntent's latest_charge field.
Yes, that's the one