#Marcel Wolf

1 messages · Page 1 of 1 (latest)

jolly baneBOT
orchid arch
#

I invite to analyse the doc API specification and see if you can find the desired field

patent whale
#

ok thank you. i missed the default settings object.

#

but makes sense since this applies to the whole subscription, not the phases

orchid arch
#

Yup!

patent whale
#

can i ask a other question?

orchid arch
#

Yeah for sure!

patent whale
#

i have a subscription with 1 year cycle. i want to apply 30 days trial in phase one and in a secound phase a coupon

#

what are my phase out dates?

patent whale
#

and phase 2 can end directly after or must it be the rest of the year

#

i want to put the subscription in release after applying coupon

patent whale
#

ok

#

i will try

#

many thanks !

orchid arch
#

Np!

patent whale
#

Can i apply the PaymentBehavior to the scheduler like default_incomplete?

undone imp
#

Not directly on the schedule no

patent whale
#

my plan is i have

subScriptParams = &stripe.SubscriptionParams{ Customer: stripe.String(req.CustomerID), Items: []*stripe.SubscriptionItemsParams{ { Price: stripe.String(req.PriceID), }, }, TrialPeriodDays: stripe.Int64(30), PaymentBehavior: stripe.String("default_incomplete"), AutomaticTax: &stripe.SubscriptionAutomaticTaxParams{Enabled: stripe.Bool(true)}, }

this at the moment. and i want to be this the first phase.

After this the subscription should apply a promo like this:

                PromotionCode: stripe.String(req.PromotionCode),
            })```
#

and i want to convert this to a scheduler

undone imp
patent whale
#

ok so i would create the subscription with the trial

#

and add a phase starting 30 days later with the update?

undone imp
#

Well, what is it you're trying to achieve with the schedule?

patent whale
#

i want to create a subscription with a 30 days trial period, depending on the coupon that was applied. if a specific coupon was used, the subscription should start with 30 days trial after this a fixed value coupon should be applied to the yearly subscription

undone imp
#

Which coupon system are you using?

patent whale
#

i have a product with three prices. i manually filter if coupon.name == "<name> " to apply the trial since this is the only sales channel that has to be applied to

undone imp
#

Why do you think you'd need a schedule in this case? Are you changing the Price object they're subscribed to, or literally just expiring the trial?

patent whale
#

some of your colleques suggested this

#

the problem is i can not apply a coupon and trial at the creation since the first invoice is 0

undone imp
#

Are you using Stripe coupons?

patent whale
#

yes

undone imp
#

What kind of coupons?

patent whale
#

onetime fixed value with customer promo code

undone imp
#

So your intention is to offer a free trial and then once trial ends apply the coupon?

patent whale
#

exactly

#

if this coupon is entered, 30 days trial, after this starting the subscription for one time of 30€

undone imp
patent whale
#

so i would create the subscription with the trial

#

and apply then a scheduler to it

#

or create both in the scheduler

undone imp
#

Well, if you need the payment_behavior param you'd need to create the subscription initially with the trial

patent whale
#

and then its just one phase

#

for the update or?

#

can i use PromotionCode: stripe.String(req.PromotionCode),
in the scheduler or must i use the coupon code?

undone imp
#

You can't pass a promotion code to the schedule API, no

undone imp
patent whale
#

since this is one time off for the first cycle

undone imp
patent whale
#

so i will do following now:

Step 1: Create the subscription with trial as i do for now.

Step 2: Create a scheduler from subscription with one phase applying the coupon and release as and behavior and this might do the trick?

undone imp
#

I think so yep! But you should test it with the clocks, they'll help you fast forward time to ensure its behaving as you need

patent whale
#

yes sure

#

a question according the clock

#

is there a way to send a existing user and subscription on time travel?

#

for now my workflow is to create a user with the normal way in staging (aquireing information and payment method) and do the same in the clock and switch the ids in my database

#

to get the hooks working with it

undone imp
patent whale
#

ok then i will try this

#

but can i do a scheduler on the timeclock subscription object?

undone imp
#

I don't understand

patent whale
#

when i create a customer + subscription in the ui

#

i have to write a extra script to apply the scheduler

undone imp
#

Yep, the clocks support schedules

patent whale
#

but not from dashboard or?

undone imp
#

No you can't create a schedule from a subscription via the Dashboard

patent whale
#

ok

#

does it makes sense to apply the promo code to the customer object instead of the subscription?

#

then if useable it will be applied?

#

i tink i saw this in the event logs from creating subscription and user in the test clock with trial and coupon

autumn wave
#

not sure I follow the use case, what does ' apply the promo code to the customer object ' mean and how is that done?

patent whale
#

Ok my problem is:
Create customer, create subscription with 30 day trial and then when the billing begins apply a one time fixed rate discount.

I tried to follow the instructions with subscription schedule and created a test clock object with the coupon applied and a trial.

I took a look into the events that where logged and saw the discount code was added to the customer instead of the subscription.

#

so i think this also could solve my problem with starting with trial and for the first billing cycle a one time off is applied

autumn wave
#

might work, did you try it?

patent whale
#

yeah i did

#

seems to be ok like this.

#

since this is a one time off it should behave like intended

#

the upcoming invoice has the coupon applied