#mink_code
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/1345962312280047616
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
let line_items = [
{
//Security Deposit
price: process.env.STRIPE_SECURITY_DEPOSIT_PRICE,
quantity: selectedQuantity,
},
];
if (selectedTerm == "Month To Month") {
//Month To Month Price
let montToMonthPrice = {
price: process.env.STRIPE_BIN_PRICE,
quantity: selectedQuantity,
};
//Delivery Fee
let deliveryFee = {
price: process.env.STRIPE_DELIVERY_FEE_PRICE,
quantity: selectedQuantity,
};
line_items.push(montToMonthPrice);
line_items.push(deliveryFee);
} else if (selectedTerm == " 3 months +") {
//3 Months Price
let trheeMonthsInitialPrice = {
price: process.env.STRIPE_BIN_3_MONHT_INITIAL_PRICE,
quantity: selectedQuantity,
};
let subscriptionAfter3Months = {
price: process.env.STRIPE_BIN_3_MONTH_SUBSCRIPTION, // Suscripción mensual automática
quantity: 1,
};
line_items.push(trheeMonthsInitialPrice);
line_items.push(subscriptionAfter3Months);
}
const session = await stripeHandler.checkout.sessions.create({
ui_mode: "embedded",
line_items: line_items,
mode: "subscription",
...(selectedTerm == " 3 months +" && {
subscription_data: {
trial_period_days: 90,
},
}),
return_url: ${process.env.FRONT_URL}/paymentConfirmation/{CHECKOUT_SESSION_ID}?fullName=${name},
});
The issue is when a 3 months + plan is selected
Do you mean that your checkout session should show 3 months worth of payment, and charging monthly after 3 months?
What do you expect the UI to show?
This is how it looks RN
The 90 days free is what should not be shown
The idea is for it to just say (subscription started after 3 months upfront period)
Or something like that
Is there a way to customize that text?
I’m afraid there is no way to customize the text