#vaghasiyasandy_api
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/1435492087331295364
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Sorry so is the main question how do you add a new product to an existing subscription and be able to prorate the charges automatically?
Hello Sam,
Currently, we are charging directly through a manual charge using the API. After the charge is completed, we add the specific product to the main subscription.
I understand. You mentioned you're moving from manual charges to Stripe subscriptions. Is your question about how to automate the proration calculation and payment when adding a product to the subscription? If I've misunderstood, could you please clarify your question?
one moment
We’ve already set up everything for subscriptions and proration. The only issue we’re facing now is with direct manual payments.
We just want to associate a manual payment (transaction) with a specific product.
For example:
We have a Basic annual plan for $1,999 and an add-on product “Sub-user” for $1,200 annually.
If a customer signs up on Jan 1, 2025, and after one month purchases the “Sub-user” add-on at a prorated amount of $1,100, we currently handle it like this:
We manually charge the customer for the prorated amount using the API.
After the payment is completed, we add the product to the main subscription — and from there, all recurring billing works fine.
The only issue is that we want to track or associate that initial manual payment with the specific product (“Sub-user”) inside Stripe.
Please let me know if that makes sense or if you need more details.
What I am understanding is that you will still do manual payments via a separate payment intent but wish to associate the payment intent with the product for which the customer is oaying for. So the main question is how to do the association. You can add a metadata to the payment intent which contains the product the customer is paying for: https://docs.stripe.com/api/payment_intents/create
Can we jump on call?
Unfortunately, we're unable to jump on a call.
No worries, Can we attach a product directly to a Payment Intent?
No you cannot as products and prices are for Billing related products.
So what is the best way to add?
The only way to associate a specific product you're charging for is to pass it as a metadata. You can all add it to the payment intent's description: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-description