#Pete100

1 messages · Page 1 of 1 (latest)

west mountainBOT
quick scarab
languid hamlet
#

req_AHcw8jR6MSAfz5

quick scarab
#

Can you try remove subscription_proration_behavior ?

languid hamlet
#

In which API? The create upcoming invoice?

quick scarab
#

Yes

languid hamlet
#

Sure. Let me try

#

Still doesn't work:

{
  automatic_tax: { enabled: true },
  subscription: 'sub_1MdRpXDxQ9GZKzvoaxV4lFw0',
  subscription_items: [
    { price: 'price_1Lwj0RDxQ9GZKzvoxOKQjc7z', quantity: 1 },
    { id: 'si_NOEIH5TfthdEvZ', deleted: true }
  ]
}
#

subscription status is trialing

quick scarab
#

Request ID?

languid hamlet
#

req_yMVcq2PVfxjKMs

quick scarab
#

Hmm, so you are removing the old subscription item and add a new price?

languid hamlet
#

correct

quick scarab
#

Why not just update the existing subscription item?

languid hamlet
#

it's a different item

#

so i do remove x add y

#

my understanding is that trials/payments are at subscription level

quick scarab
#

OK. I know the problem

languid hamlet
#

I am happy to change the process underlying as long as I can start with a free trial, then allow user to get off free trial before it ends and select a different product/price, in which case I force them to set up payment intent

quick scarab
#

You set missing_payment_method to "cancel". Since there's no payment method provided for this subscription. The subscription will be canceled when the trial ends and no upcoming invoice will be generated.

languid hamlet
#

correct. what do i do to make it work for above? 👆

quick scarab
#

Attach a payment method to the subscription.

languid hamlet
#

i do sdo that, but i want to preview the change first for the user

quick scarab
#

Or change the missing_payment_method to pause or create_invoice

languid hamlet
#

i'll try create_invoice