#reinaldo.btc
1 messages · Page 1 of 1 (latest)
Hi! I am not sure I understand the question.
About the penalty, is this a question about how Stripe works, or are you asking if it is possible to implement something like this with Stripe?
I am sorry for the confusion
The idea is that I need to have an option for customer to subscribe to a yearly or 6 month price that is paid monthly but that if by month 4 the customer cancels he needs to pay the remaining balance on the plan. For example if he subscribed to the yearly plan and he cancels on month 4, I need to charge him the 8 month left in the contract
This is for a virtual office plan. A customer can pay month by month 49$ a month but if the customer subscribed to a yearly commitment it will pay 35$ a month but if he cancel in month 4 I need to charge him something
It's totally possible, but this will be hard to do without code tho
Understood. Perhaps I cam try if you send me some information I could use
const stripe = require('stripe')('YOUR_SECRET_KEY');
// Create the product
stripe.products.create({
name: 'Monthly subscription',
type: 'service',
}, (err, product) => {
// asynchronously called
});
// Create the plan for monthly subscription
stripe.plans.create({
product: product.id,
nickname: 'Monthly',
interval: 'month',
currency: 'usd',
amount: 10.00,
}, (err, plan) => {
// asynchronously called
});
// Create the plan for 6 months subscription
stripe.plans.create({
product: product.id,
nickname: '6-Month',
interval: 'month',
currency: 'usd',
amount: 9.00,
interval_count: 6,
trial_period_days: 30,
cancel_at: 'end_of_period',
}, (err, plan) => {
// asynchronously called
});
// Create the plan for 12 months subscription
stripe.plans.create({
product: product.id,
nickname: '12-Month',
interval: 'month',
currency: 'usd',
amount: 8.00,
interval_count: 12,
trial_period_days: 30,
cancel_at: 'end_of_period',
}, (err, plan) => {
// asynchronously called
});
Chatgpt
that's a bit useless(and wrong), so let's ignore that
Ohh really?
mainly this is something you handle by having a monthly subscription, and then you can add a one off invoice item computed for the "remaining time" when cancelling https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items
Stripe doesn't have the concept of a yearly subscription paid monthly, that's logic you need to build on top. On the Stripe side it's just a monthly recurring subscription forever
Understood !
Thank you. Do you know where can I hire a stripe dev that can help me with this ?
I don't have any particular recommendations I'm afraid, would depend on your location/budget etc, best to do some local research