#deepak_subscription-trial

1 messages ¡ Page 1 of 1 (latest)

loud ruinBOT
#

👋 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.

sour lichen
#

hi

thorny copper
#

deepak_subscription-trial

sour lichen
#

I have a question

thorny copper
#

@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

sour lichen
#

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,

thorny copper
#

Sorry, did you read my exact sentence? I explained the behaviour. We do not look at the trial on the Price

sour lichen
#

Olay

#

Okay

#

how to send it if i want it only one of the addon(Item)>

#

?/

thorny copper
#

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

sour lichen
#

Oh okay

#

Thank you