#King Of Web Devs-one-time-sub-payment
1 messages · Page 1 of 1 (latest)
Hello! You can't add non-recurring products/prices to a subscription, no. Instead you'd add them to the initial invoice generated by the subscription
ok when i try and create an invoice im getting an error - Stripe\Exception\InvalidRequestException: If invoice collection method is 'send_invoice', you must specify 'days_until_due'
and have no idea how to set the days_until_due with laravel cashier
the cahsier docs suggest this "The amount of time a customer has to pay their invoice before their subscription is canceled is determined by your subscription and invoice settings within the Stripe dashboard."
I'm not sure either! But this is the parameter: https://stripe.com/docs/api/invoices/create#create_invoice-days_until_due
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
cashier is suggesting its a setting that needs to be set in the dashboard but i cannot see it?
It's not, no. It's a parameter on the Invoice object
ok is there an easy way to set the initial price of a subscriptiona and then reduce it down to free?
im basically trying to switch customers to a new product seamlessly. The new product is a lifetime product. Many customers have already completed a checkout process and wont want to do it again.
I'm very confused! You have an active subscription for price X and you want to switch it to price Y?
exactly that
but with a one time charge and free sub for price Y
the previous guy i spoke to suggested that i expire price X subs, create a webhook for deleted subs and then create the new sub.
so im trying to create the new sub with a recurring free product price Y and a one time charge
these are all legacy customers therefore payment intent has never been stored
it would be soooo much easier if i could create a charge with the payment method on the customers account (with accpetance/rejectance from the customer)
Yep, that'll work
You could do that too. What's preventing that?
how do i create a one time charge with no previous payment info?
that the user accepts/rejects?
Ah, I misinterpreted what you said. I read it as if you had saved payment methods on the customer
You could just create a single invoice for the one-time payment if the recurring price is free
ive just tried creating a subscription invoice with the free recurring item and the one-time item but got an error - does not like the one-time price
Can you share the request ID?
Np! Let me know if anything else comes up