#Victor Chaos
1 messages ยท Page 1 of 1 (latest)
Following payment you can find this on the Charge object:
https://stripe.com/docs/api/charges/object#charge_object-receipt_url
which you can reach via the latest_charge (or charges array) on the payment intent from the session:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
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.
Thanks for the reply, my aim is to email the receipt to users. Is there a way I can do this using the info you have provided?
You can get the receipt url and share that with them, yes!
Or you can set the receipt_email on the payment intent:
https://stripe.com/docs/api/payment_intents/update#update_payment_intent-receipt_email
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 have two workflows, customers can either buy a one time digital product or subscribe. I noticed that subscriptions generate invoices that are viewable in the customer portal, but one time purchases do not. Is it possible to one time purchases in this portal too?
Note that Checkout can be set to do this automatically: https://stripe.com/docs/receipts#automatically-send-receipts-when-payments-are-successful
No, those are invoices, which are not created for one time payments currently
This only works for subscriptions tho right?
No, you can set your settings to email receipts for all payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
When using Checkout, you can automatically email your customers upon successful payments. Enable this feature with the email customers for successful payments option in your email receipt settings.
The above is where that links to, and you can enable it there
Yeh ok, appreciate that. I think its exactly what I want
Just confusing having settings in two places effectively
Is there anyway to create an invoice and mark it as Paid after the checkout session has finished?
For a one time payment
Not currently, but we're working on ways to enable that
Any ETA on that feature?
๐ stepping in
You are looking for creating Invoices with Checkout?
I'd recommend reaching out to our Support team about that. As noted, there is work being done and it is possible they could get you early access or at least keep you up to date for when this will be released.
I turned this on, however receipts arent being sent. Does it work for test mode and is there a delay of some sort?