#deepak_subscription-trial
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288192101045244016
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi
deepak_subscription-trial
I have a question
@sour lichen we don't really look at the default trial on a Price anymore unfortunately. I know it's super confusing
Instead, you are supposed to explicitly pass trial_period_days on Subscription creation
These have trial_period_day days
[2024-09-24 12:31:47] local.DEBUG: array (
'id' => 'si_QuRAPTeKVpAeI4',
'object' => 'subscription_item',
'billing_thresholds' => NULL,
'created' => 1727197952,
'discounts' =>
array (
),
'metadata' =>
array (
),
'plan' =>
array (
'id' => 'plan_QQ387jLyDY7kFB',
'object' => 'plan',
'active' => true,
'aggregate_usage' => NULL,
'amount' => 20000,
'amount_decimal' => '20000',
'billing_scheme' => 'per_unit',
'created' => 1720189398,
'currency' => 'usd',
'interval' => 'month',
'interval_count' => 1,
'livemode' => false,
'metadata' =>
array (
),
'meter' => NULL,
'nickname' => 'Field Management',
'product' => 'prod_LK1vUt5RfnSjEP',
'tiers' => NULL,
'tiers_mode' => NULL,
'transform_usage' => NULL,
'trial_period_days' => 14,
'usage_type' => 'licensed',
),
'price' =>
array (
'id' => 'plan_QQ387jLyDY7kFB',
'object' => 'price',
'active' => true,
'billing_scheme' => 'per_unit',
'created' => 1720189398,
'currency' => 'usd',
'custom_unit_amount' => NULL,
'livemode' => false,
'lookup_key' => NULL,
'metadata' =>
array (
),
'nickname' => 'Field Management',
'product' => 'prod_LK1vUt5RfnSjEP',
'recurring' =>
array (
'aggregate_usage' => NULL,
'interval' => 'month',
'interval_count' => 1,
'meter' => NULL,
'trial_period_days' => 14,
'usage_type' => 'licensed',
),
'tax_behavior' => 'exclusive',
'tiers_mode' => NULL,
'transform_quantity' => NULL,
'type' => 'recurring',
'unit_amount' => 20000,
'unit_amount_decimal' => '20000',
),
'quantity' => 1,
'subscription' => 'sub_1PtNiPI0FYDGs7q9u4P9hdRX',
'tax_rates' =>
array (
),
)
Would it apply the trial?
'trial_period_days' => 14,
Sorry, did you read my exact sentence? I explained the behaviour. We do not look at the trial on the Price
That's just impossible and not supported. That's why we don't look at the Price's trial. You can't have one item has a trial and the other one doesn't