#sarita_21302
1 messages · Page 1 of 1 (latest)
Hello sarita_21302, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• https://discord.com/channels/841573134531821608/1163709087318548480, 1 days ago, 18 messages
• https://discord.com/channels/841573134531821608/1163636672114737223, 1 days ago, 8 messages
• https://discord.com/channels/841573134531821608/1163350078820466728, 2 days ago, 21 messages
• https://discord.com/channels/841573134531821608/1162159964849197077, 5 days ago, 24 messages
• https://discord.com/channels/841573134531821608/1162020994337230898, 6 days ago, 17 messages
• https://discord.com/channels/841573134531821608/1161949945306288179, 6 days ago, 28 messages
• https://discord.com/channels/841573134531821608/1161903518953771038, 6 days ago, 6 messages
hello! as far as I can see, the receipt doesn't include the name by default. You could try updating the description to include the name and see how the receipt looks like
ok, let me try that
And is there a way to get the receipt_url from the payment_intent?
Also just to confirm, - updating receipt_email will automatically send email on live mode?
I added the description but it doesn't appear on the default receipt
is there a way to get the receipt_url from the payment_intent
You'll need to retrieve the receipt_url from the Charge object : https://stripe.com/docs/api/charges/object#charge_object-receipt_url. If you want to retrieve it from the PaymentIntent, you'll need to expand : https://stripe.com/docs/api/expanding_objects latest_charges when retrieving the PaymentIntent
Also just to confirm, - updating receipt_email will automatically send email on live mode?
If you need to send an email receipt to a customer for a previous charge after the fact. The receipt_email parameter on the Update Charge API can be used. It forces an email receipt to be sent even if email receipts are disabled in your dashboard settings.
If you already did this before (the charge already has receipt_email set), updating the charge will not send a new email receipt. In that case, you need to run two calls to the Update Charge API. The first one will set receipt_email as null to remove the original value. The second one will set receipt_email back to the expected email address. In that case, we detect a change and we will send a new email receipt.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I added the description but it doesn't appear on the default receipt
was the receipt already previously sent? If so, you need to update the description on the Charge object itself instead
The receipt was not sent previously.
I'm in test mode, I created the payment intent without the email, after that got the email address for receipt, updated the payment_intent - receipt_email and description. To test sent the email from the dashboard.
And the description was not included in the receipt
So what I want to acheive is - charge the user first, and if they provide email and name for reciept send one otherwise skip receipt process
can you share the Charge object id where you updated the description? It'll look like ch_
I updated the payment_intent, in your initial comment it was not mentioned and I was updating the payment_intent to set receipt_email so I updated the description for the same. I'll ceck the charge object now
for receipt_email - do I need to update payment_intent for auto email and for description charge object?
I got description working after charge update
if the PaymentIntent is already successful, then you'll need to update the Charge object instead
Will it also send the email?
if receipt_email is also updated for charge?
When I updated payment intent receipt_email and description it was showing in the dashboard
but charge update didn't show it in the payment dashboard
the Dashboard shows the PaymentIntent object, not the Charge object. You can identify what object it's showing from the url i.e. it's showing pi_
the PaymentIntent when successful, does a one time copy of certain parameters when it creates the Charge object
subsequently, updates to the PaymentIntent doesn't propagate down to the Charge object
So in my case - updating the charge will trigger the email and if payment intent is also updated it will show the same details in the dashboard
if you want the updated data to show on both the PaymentIntent and Charge object (after successful payment), you'll need to update both objects
yep that's right
Cool, thanks for your help.
I'm using stripe api calls in wordpress plugin, on plugin activation I wanted to exec composer install but my hosting provider doesn't allow exec() or shell_exec(). What is the alternate to include stripe seamlessly?
We mainly help with developers who want to integrate directly with the Stripe API here on this channel so we don't really have knowledge on how to use Stripe with your wordpress plugin. You might want to reach out to the plugin developer to check on that