#beans-shippingrate
1 messages · Page 1 of 1 (latest)
Hello @fresh crown Can you give me a bit more details/context? We don't support ShippingRate on Subscription today as far as I know
Yeah i see that, so what i did is, i just added is as a product.
I created a product called shipping rate and its a recurring
Then that is what i am using to act as a shipping rate
I successfully update the subscription after the checkout
But the problem is the “shipping rate product” that i added is reflecting on Aug 24 - Oct 8 (First Invoice Date)
For the upcoming invoice i am getting 2 shipping rate products
See the screenshot
@dreamy topaz
that's because of proration
when you're adding shipping as a Product it's a new Price, we prorate for the remainder of the month
i set proration to none
and then next month you'll charge for both
I mean you didn't it's right there with the "remaining time"
i see, so is there a way to remove the prorate product for the first month?
or am i adding the "shipping product" right?
its a normal product
it doesn't make sense to create a Subscription on Price A with an invoice item for shipping B, and then update the Subscription to add B to Price A for the future
but when i create the subscription, i add the initial shipping on **add_invoice_items **not in the items cause the first shipping can be free
referring here
@dreamy topaz
actually i am open to suggestion cause i am still exploring how to implement this.
right now that is the only way i think to do it
and also for the first month, the shipping is dynamic
Sorry Discord is busy and I barely understand what you're doing 😅
Ultimately: if all you want is to update and add the new Price and no proration, then you can do that
show me the exact Subscription id and I'll show you what you missed
even i set the proration_behavior to none on creation?
ah that's the problem
proration_behavior is not a setting for the Subscription. It's per request. Every time you touch a Subscription, you tell us "as you make the change please prorate (or don't)"
so meaning, when i add the product i need to pass proration_behavior?
yes.
every time you call https://stripe.com/docs/api/subscriptions/update you have to pass proration_behavior
i got the same result
yay
sub_1LaRE7CRqxw3fS7HymKOJjWI
so now taking a step back
You want someone to pay $100 a month for Price A. You also want a shipping fee and you did Price B for it.
Every month they pay for both
But sometimes, shipping is cheaper, but not all the time. Only the first time? More?
The first time, shipping can be more, if they order more products.
Cause we allow one time product
and subscription product
in 1 checkout
like at the same time
ah I see
so for the first payment, they are paying the one time products and the product they subscribe.
And you don't want to have a separate "additional shipping fee" because it's meh
then the succeeding months only the subscribed product
So yeah your plan works fine
yea thanks for the help.
You could use SubscriptionSchedule to "plan" the addition of the Shipping fee next month, but it's a lot more convoluted