#torec
1 messages · Page 1 of 1 (latest)
Hi vanya, How are you?
so we have a product that has a graduated pricing. can you please let me know if what I do right now is the best way to do.
Hi! I'm good, thanks. Let me help you with this.
Could you please share more details?
Like an example use case.
I will post the code again but let me cover some of the details.
The use case is that we have a product (license)
and there is a quantity discount when a quantity is higher
so Stripe support it as a subscription and this is how we started
but then we decided that it would be a one-time payment
but we really want to use Session Checkout and not to deal with the payment process
so I did a "on the fly" product.
is that the best way to accomplish it?
I did something similar in an another product and it worked better because a subscription was involved.
How can I do a one-time payment that is graduated but also having it with an invoice?
This look reasonable, are you having any challenges with this approach?
so I would like to do also to use the customer portal of stripe
but because there is no invoice, why?
the customer portal is useless. there is no invoice history
is there any parameter in Session Object to generate an invoice too?
By session you mean Customer Portal Session? Or Checkout Session?
I mean with the code above, I get a payment out of Stripe Checkout Session, but there is no Invoice attached to the session
I don't mind to grab the charge object instead of the invoice object in order to have the proper values in my order table.
But because there is no invoice, the client that will login to the Customer Portal will not have any indication of the payment
I know I can do it using an API and retrieve the charge, but we want to have it all in Stripe so we don't need to deal with it on our end.
I found some Stripe page:
"Pricing for post-payment invoices for one time purchases via Checkout and Payment Links"
and it costs like 0.4%, is that what I'm looking for? and why does it need to cost money and if this is my answer, how do I activate it.
OK I found it
'invoice_creation' => ['enabled' => true],
so that's what I need to use?
Hey, sorry for the delay. Yes, this will generate an Invoice on successful payment. I don't know about pricing details, please contact Stripe Support for more details: https://support.stripe.com/?contact=true
OK thank you
Happy to help. Please, let me know if you have any other questions.
You too!