#slikheks.
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
If I set proration_behavior=none the price they need to pay for this year will be 0 instead of the full amount
The proration behavior only matters if you update the Subscription.
Could you please share the Subscription ID?
It's for customers that were already on our platform but not yet paying. I dont have a subscription ID as I use this code to create subscriptions.
const session = await stripe.checkout.sessions.create({
customer: stripeCustomerId,
billing_address_collection: 'required',
customer_update: {
address: 'auto'
},
payment_method_types: ['ideal'],
locale: 'nl',
line_items: [
{
price: SUBSCRIPTIONS.member.price,
quantity: 1,
tax_rates: [SUBSCRIPTIONS.taxRate]
}
// {
// price: 'price_1OYoiaKBO0hxZ40p2taEWrLa',
// quantity: 1,
// tax_rates: [SUBSCRIPTIONS.taxRate]
// }
],
subscription_data: {
billing_cycle_anchor: Math.floor(
billingCycleAnchor.getTime() / 1000
) // Convert to Unix timestamp
},
mode: 'subscription',
success_url: `${process.env.NEXT_PUBLIC_BASE_URL}`,
cancel_url: `${process.env.NEXT_PUBLIC_BASE_URL}`
});
I assume their must be a way to tell stripe not to reduce the amount they need to pay ?
It will bill for the whole amount by default. Are you observing a different behavior?
yes, see screenshot
the subscription price is 250 excluding VAT
so you see it gets lowered to 240 because we're on january the 15th
But I dont want that to happen
Stripe's docs say: "Disable the proration by setting proration_behavior to none, making the initial period up to the first full invoice date free. This action doesn’t generate an invoice at all until the first billing cycle."
but when I do that the amount becomes 0 untill the cycle starts at januari the first
Could you please share the ID of this Subscription?
Ok, of a Checkout Session then.
I basically need to create a subscription that the customer needs to pay for this year and by doing so let it automatically renew 1st of next year. I cannot use the subscription api because we can't charge automatically as the customer doesnt yet have a payment method set, hence I use the checkout session api
Just to clarify, you want to charge full amount for this year, correct?
yes
Ok, there's no straghtforward way to do it.
Here's a workaround:
You set subscription_data.trial_end to the start of next year,
And add a one-time line_item for the amount of one year - EUR 250. You might need to create a new Price for this.
alright, thanks!
Happy to help.