#itxve - subscriptions

1 messages · Page 1 of 1 (latest)

urban garden
#

Hi there!

wooden edge
#

hi

urban garden
#

You have an existing subscription with a trial, and you want to end the trial at the end of the current billing cycle?

#

Or are you creating a brand new subscription?

wooden edge
#

I have made it the end of the trial, but I also want to test whether its next cycle is positive

urban garden
#

I'm sorry I don't understand your question. What are you trying to do? Set a trial, or test something?

wooden edge
#
  1. I generated a subscription order that is free for 7 days and paid monthly

  2. I manually trigger the end of trial, and then I want to test whether the next cycle of this order is normal

urban garden
wooden edge
#

But I don't know how to associate my subscription ID with test_ clock

urban garden
#

It's a 3 step process:

  1. Create a test clock
  2. Create a customer with that test clock
  3. Create a subscription with that customer
    And now you can move the test clock forward in time to change the time of the subscription
wooden edge
#

Can I use this method to test his every cycle


const subscription = await stripe.subscriptions. update('sub_49ty4767H20z6a', {

billing_ cycle_ anchor: 'now',

proration_ behavior: 'create_ prorations',

});

urban garden
#

I strongly recommend using test clocks to test subscriptions. And if you run into issues I'm happy to help!
Note that you can use test clock from the dashboard if needed.

wooden edge
#

I want to view the invoice records of existing subscriptions. How can I use stripe cli to query

urban garden
wooden edge
#

thx

wooden edge
#

Hi, I want to generate a subscription order every six months, but I find only year, month, day, week

brittle thistle
wooden edge
#

thx

#

I use session to create a subscription payment link with 7-day trial and monthly payment. I can normally test the end of trial and automatically deduct money. I want to trigger the next subscription end event. What should I do

#

I am use java ,CustomerCreateParams no setTestClock("{{CLOCK_ID}}") method

wooden edge
#

How session uses an existing subscription,
I'm stuck in this step

brittle thistle
#

Checkout can't use an existing subscription unfortunately

wooden edge
#

When I use chechout to generate a subscription mode to start a 7-day free monthly plan, the fee will be deducted automatically after the trial, and it will also be deducted automatically every month. I want to know if there is any problem with my understanding

brittle thistle
#

Nope, that's correct. That's how it works yep

wooden edge
#

I just don't know how to test it, because checout can't associate with an existing subscription😟

brittle thistle
#

That will simulate billing scenarios in the future, such as renewals

wooden edge
#

Can interval be set every hour

bright copper
#

no that's not possible

#

this is why my colleague suggested test clocks

#

this is the best way to test billing scenarios

wooden edge
#

test_ Clock cannot be created from an existing subscription. Generally, I should test an existing subscription

bright copper
#

that doesn't work, but you could recreate a new subscription that replicates the existing one

wooden edge
#

Every time the subscription created by cheout is new, I can't find a way to set it to an existing subscription

wooden edge
bright copper
#

using the same parameters and you can backdate it to the same creation date

wooden edge
#

Can I find it in the docs.

bright copper
wooden edge
#

thx, i try it