#BrittanyG
1 messages · Page 1 of 1 (latest)
Hi, can you add more details here? Are you asking how you'd send the invoice to the customer? Or else?
No. I don't want to send the invoice. I am asking is there a way to show the invoice payment page when the user clicks the "pay" button.
Or does the invoice has to be sent as an email?
I am trying to see if there is a work around so that they can pay the invoice without having to leave the site.
You're creating one off invoices with the Invoice Create API, https://stripe.com/docs/api/invoices/create correct?
Yes
In this case, if the customer has a default payment method, https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method then you'd pass charge_automatically on the collection_method parameter when creating the invoice.
https://stripe.com/docs/api/invoices/create#create_invoice-collection_method. Stripe will attempt to pay this invoice using the default payment method.
Yes. Ive been through trying to use that method and unfortunately that is not how I want it to work. So I changed the collection_method to send_invoice.
So basically, there is no way to show that invoice payment page on the click of a button?
That is correct, in this case, you might be looking for Stripe Checkout: https://stripe.com/docs/checkout/quickstart where payments can be right there
Ok. Thanks. I will try this method.