#tiaringhio - subscription status
1 messages ยท Page 1 of 1 (latest)
That's correct, you cannot set the status explicitly, you need to let the subscription cycle with a failed payment etc according to your billing settings
You can also use Billing Test Clocks to advance time without waiting in order to achieve this:
https://stripe.com/docs/billing/testing/test-clocks
Learn how to move Billing objects through time in test mode.
oh alright, makes sense i will check test clocks out, in the meantime thank you for the help, have a nice day!
NP you too
just a small question, since i'm relying on metadata, is there a way to also add such metadata to the subscription via the test clock?
You can add metadata to basically any object in your requests, so sure!
Clocks don't change that
thank you! i just noticed i can do you via the dashboard in the page of the subscription i want to update
Note that for test clocks you will need to create a new customer / subscription etc inside the clock context to test
thank you very much, i just tested and it works as intended!
one last question since i have you, I'm using stripe checkout to process my payments, for standard (not subscription) payment i was able to add the metadata while creating the session, since now i need the metadata in the subscription object, is there a way to pass the data to the subscription object when creating the checkout session?
oh nevermind, i noticed that an object called SessionSubscriptionDataOptions exists, that object has metadata inside, it should behave the same way as the metadata option in the session object
Yes, that passes through the subscription_data.metadata parameter in the API which is what you want
The session metadata and the subscription metadata are separate, but you can set them both
thank you again, you've been of great help!
makes, sense
No problem at all ๐
have a nice day rider!
you too!