#bokehdan
1 messages ยท Page 1 of 1 (latest)
I don't believe this is possible
Any reason it has to be an invoice? You could have a payment element on your website to accept a payment
@wise gull thanks for your response!
It doesn't necessarily need to be an invoice, but we're building a bespoke order of products offline (by phone) so we'd love for customers to see their order summary before they purchase
Ah ok I see. So yeah either you can have a button that redirects them to the hosted invoice page or you could use the payment element and include your own view for the order summary on that page
-
Button that redirects to hosted invoice page - good idea, will look into this!
-
For the payment element, do you know if this can point to a pre-made invoice?
You can. Invoices are built on top of payment intents: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you could initialize the payment element with an invoice's payment intent client secret
Ah interesting....
Do you think this would technically work:
- Our internal team create an invoice in Stripe and add a new customer by their email address
- Customer goes to our website, creates an account with us.
- Once logged in, we call Stripe's API and fetch the invoice based on the customer email address
- Customer pays invoice
Yes that would technically work
Why do you need to create these invoices prior to customers registering though?
purely because we don't currently have a shopping cart on our site (yet), we'll be on the phone to them and looking to see if they're willing to purchase our product
having the customer register with us allows us to retain that customer and allow them to manage their product purchases in the future
awesome, really appreciate your help @wise gull ๐
No problem
@wise gull one follow-up question for you, aside from Customer ID, can the customer email address also be used as a form of identifier? (e.g we can only have one customer with a specific email address)
Hello! I'm taking over and catching up...
No, Stripe does not consider the email address a unique identifier. It's possible to have multiple Customer objects in Stripe with the same email address. You can use email as a unique identifier on your end, but you need to handle that logic on your end.