#King Of Web Devs-one-time-sub-payment

1 messages · Page 1 of 1 (latest)

feral pivot
#

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

undone ridge
#

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."

feral pivot
undone ridge
#

cashier is suggesting its a setting that needs to be set in the dashboard but i cannot see it?

feral pivot
#

It's not, no. It's a parameter on the Invoice object

undone ridge
#

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.

feral pivot
#

I'm very confused! You have an active subscription for price X and you want to switch it to price Y?

undone ridge
#

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)

feral pivot
undone ridge
#

how do i create a one time charge with no previous payment info?

#

that the user accepts/rejects?

feral pivot
#

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

undone ridge
#

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

feral pivot
#

Can you share the request ID?

undone ridge
#

its fine ive managed to sort it

#

thanks for your help.

feral pivot
#

Np! Let me know if anything else comes up