#tiaringhio - subscription status

1 messages ยท Page 1 of 1 (latest)

static dew
#

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

deft radish
#

oh alright, makes sense i will check test clocks out, in the meantime thank you for the help, have a nice day!

static dew
#

NP you too

deft radish
#

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?

static dew
#

You can add metadata to basically any object in your requests, so sure!

#

Clocks don't change that

deft radish
#

thank you! i just noticed i can do you via the dashboard in the page of the subscription i want to update

static dew
#

Note that for test clocks you will need to create a new customer / subscription etc inside the clock context to test

deft radish
#

thank you very much, i just tested and it works as intended!

static dew
#

Great!

#

Quite welcome ๐Ÿ™‚

deft radish
#

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

static dew
#

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

deft radish
#

thank you again, you've been of great help!

static dew
#

No problem at all ๐Ÿ™‚

deft radish
#

have a nice day rider!

static dew
#

you too!