#itxve - subscriptions
1 messages · Page 1 of 1 (latest)
hi
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?
I have made it the end of the trial, but I also want to test whether its next cycle is positive
I'm sorry I don't understand your question. What are you trying to do? Set a trial, or test something?
-
I generated a subscription order that is free for 7 days and paid monthly
-
I manually trigger the end of trial, and then I want to test whether the next cycle of this order is normal
To test subscriptions, I recommend using Test Clocks: https://stripe.com/docs/billing/testing/test-clocks
This allows you to move subscriptions forward in time.
But I don't know how to associate my subscription ID with test_ clock
It's a 3 step process:
- Create a test clock
- Create a customer with that test clock
- Create a subscription with that customer
And now you can move the test clock forward in time to change the time of the subscription
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',
});
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.
I want to view the invoice records of existing subscriptions. How can I use stripe cli to query
With the API you can list invoice for a specific subscription using https://stripe.com/docs/api/invoices/list
thx
Hi, I want to generate a subscription order every six months, but I find only year, month, day, week
Yup, you can't do that without a schedule: https://stripe.com/docs/billing/subscriptions/subscription-schedules
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
You'd use billing clocks
How session uses an existing subscription,
I'm stuck in this step
Checkout can't use an existing subscription unfortunately
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
Nope, that's correct. That's how it works yep
I just don't know how to test it, because checout can't associate with an existing subscription😟
You'd use billing clocks: https://stripe.com/docs/billing/testing/test-clocks
That will simulate billing scenarios in the future, such as renewals
Can interval be set every hour
no that's not possible
this is why my colleague suggested test clocks
this is the best way to test billing scenarios
test_ Clock cannot be created from an existing subscription. Generally, I should test an existing subscription
that doesn't work, but you could recreate a new subscription that replicates the existing one
Every time the subscription created by cheout is new, I can't find a way to set it to an existing subscription
How can I recreate a new subscription that replicates the existing one
using the same parameters and you can backdate it to the same creation date
Can I find it in the docs.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thx, i try it