#funnelting-subscriptions
1 messages · Page 1 of 1 (latest)
@lavish oyster hi!
First two months $50 and after that $50 per month.
you mean, $50 today, then 2 months later in November 15th, $50 again, then $50 on December 15, and so on?
Correct
the easiest way is probably to add an $50 invoice item (https://stripe.com/docs/billing/invoices/subscription#first-invoice-extra) and create the subscription using a $50/month Price, but also setting trial_end to a date 2 months from now.
That could be a good solution. Thanks a million
let subscription = await stripe.subscriptions.create({
customer: customer.id,
default_payment_method : pm.id,
add_invoice_items:[{
price_data:{
unit_amount:10000,
currency:"usd",
product:"prod_DQYexGI6JNKfMq"
}
}],
items: [
{
plan: "plan_DQYe83yUGgx1LE",
},
],
trial_end:moment().add(2,"months").unix(),
expand : ["latest_invoice"]
});
this is the idea/what it looks like, if that helps!