#beans-shippingrate

1 messages · Page 1 of 1 (latest)

dreamy topaz
#

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

fresh crown
#

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

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

fresh crown
#

i set proration to none

dreamy topaz
#

and then next month you'll charge for both

#

I mean you didn't it's right there with the "remaining time"

fresh crown
#

i see, so is there a way to remove the prorate product for the first month?

#

or am i adding the "shipping product" right?

dreamy topaz
#

depends what you want

#

is the shipping rate not needed for the first invoice?

fresh crown
#

yes

#

cause i already added it as a add_invoice_items for the first month

dreamy topaz
#

but why

#

like why don't you add it as a normal product 😅

fresh crown
#

its a normal product

dreamy topaz
#

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

fresh crown
#

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

dreamy topaz
#

I still would not do that

#

but okay so what do you want to happen?

fresh crown
#

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

dreamy topaz
#

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

fresh crown
#

sub_1LaQ82CRqxw3fS7Hb4q7X55a

#

this one for example

dreamy topaz
#

this is your update, you never passed proration_behavior so we prorated

fresh crown
#

even i set the proration_behavior to none on creation?

dreamy topaz
#

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)"

fresh crown
#

so meaning, when i add the product i need to pass proration_behavior?

dreamy topaz
#

yes.

fresh crown
#

actually i did that

#

here

dreamy topaz
fresh crown
#

i got the same result

dreamy topaz
#

you... did not?

#

like there's no proration item?

fresh crown
#

oh yea

#

it worked

dreamy topaz
#

yay

fresh crown
#

sub_1LaRE7CRqxw3fS7HymKOJjWI

dreamy topaz
#

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?

fresh crown
#

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

dreamy topaz
#

ah I see

fresh crown
#

so for the first payment, they are paying the one time products and the product they subscribe.

dreamy topaz
#

And you don't want to have a separate "additional shipping fee" because it's meh

fresh crown
#

then the succeeding months only the subscribed product

dreamy topaz
#

So yeah your plan works fine

fresh crown
#

yea thanks for the help.

dreamy topaz
#

You could use SubscriptionSchedule to "plan" the addition of the Shipping fee next month, but it's a lot more convoluted

fresh crown
#

will check that out as well

#

thanks again!