#joseamica
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ receipts have a limited customization options:
https://stripe.com/docs/receipts?payment-ui=checkout#customizing-receipts
If you're trying to include custom text, then payment_intent_data.description is likely the best way to pass that:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-description
but I would recommend taking a look at what that description being set to on the created Payment Intents with the flow you currently have, to ensure you aren't going to overwrite or change something you'd like to keep.
thx!
There is a way I can include
break lines? So i can specify more details? \n
\n
?
I doubt it. I was trying to pass line breaks as a description for something else yesterday, and couldn't get it to work as expected. They'd either get flattened to a single line or the special characeters would be escaped.
If you can't do what you want with that, you may want to instead look into having the Checkout Session generate an Invoice:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-invoice_creation
Inside of that hash you can also provide additional custom data to be included on the generated Invoice, I believe more than receipts will let you pass through.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can you give me an example of the ouput?