#rbole
1 messages · Page 1 of 1 (latest)
hey, if I do a checkout session and I use stripe billing too, then I can get the invoice ID from the checkout session. I can query the invoice and get the hosted_invoice_url back from the invoice. That is fine
If I don't use the stripe billing, can I get the payment recipe also as hosted_invoice_url link ?
or something else ?
hosted_invoice_url requires an Invoice, so if you don't use Billing, there's no invoice to link to.
But do you still use a Checkout Session?
👋 stepping in
So it sounds like a Checkout Session is what you want, no?
If you don't have an Invoice you would just provide a Session URL
Yes I have a checkout session, without billing
Okay can you explain the gap here? Or what issue you are experiencing?
and later I would like a link to the payment receipt like it is in email to the customer.
so in out application we want a button to click and the customer can get the payment receipt like in the email, do you understand what I mean ?
Ah okay so you want the receipt
yes
After the Checkout Session has been completed
yes
Gotcha gotcha
Then you want the Charge's receipt_url: https://stripe.com/docs/api/charges/object#charge_object-receipt_url