#GRINGO
1 messages ยท Page 1 of 1 (latest)
body.items.push({
price_data: {
currency: 'BRL',
unit_amount: shippingPrice,
product_data: {
name: "Shipping - "+shipping.title,
},
recurring: {
interval: "month"
}
},
})
๐ Give me a minute to take a look
of course karbi
I'm going crazy to find a way to support shipping in my subscriptions on both web with checkout session and in the app with payment intent
Unfortunately I think this was a gap we overlooked - I'll file feedback to get this supported through the Subscriptions API, but for now I don't think there's a workaround
:/
do you know if there's a correct way to add shipping to subscriptions?
or if it will be developed?
Shipping is something you'd specify on the Customer (not the Subscription)
not shipping info
the shipping cost
if I have 2 subscriptions with 2 different shipping methods / prices, i need them to be related to their subscription
we have a product where we send monthly products to users houses
Ah, so you want the same customer (with two different subscriptions) to be able to specify different shipping addresses per subscription?
not addresses
price
my subscription is 19.9
and the shipping cost is 3.99
the other subscription is 23.9
and the shipping cost is 4.99
i want to know how I add the cost of the shipping on my subscription
because: shipping_rates` cannot be used in setup or subscription mode
Ahhh gotcha - thanks for clarifying! Is this a recurring shipping cost (that you'll want to generate each month), or is it a one-time thing?
yes, recurring shipping cost
Have you considered just adding it as an additional Subscriptoin Item on the Subscription?
yes that what I was tried, but I can do only on the checkout session as you said in the beggining
the price is dinamic, calculated accordingly the user address and the size of the product
isn't a problem to creat thousands of prices for the shipping costs
It isn't really an issue - you'd create a shipping Product and then specify price_data for the shipping cost when you create the Subscription
yes I did that
and it work on checkout sessions
but now on subscription creation
hah
Can you give me an example where it didn't work with Subscriptions?
body.items.push({
price_data: {
currency: 'BRL',
unit_amount: shippingPrice,
product_data: {
name: "Shipping - "+shipping.title,
},
recurring: {
interval: "month"
}
},
})
you said in the start of the conversation
Unfortunately I think this was a gap we overlooked - I'll file feedback to get this supported through the Subscriptions API, but for now I don't think there's a workaround
I need to already have created the product, different from the checkout session
Yeah but that's not what I'm suggesting - you create a shipping Product separately (don't use product_data) and then you'd use that existing product with price_data
but it will make my dashboard a mess
imagine having thousands of products for just shipping cost
but, if there's the only option, I have to do that
To clarify - you could have a SINGLE product for the shipping, but that product will have multiple prices
but do you know if it is planned to support shipping cost for subscription in the future?
there's a limit of prices for a product?
There's no limit for number of prices for a product
and far as I know there aren't current plans to support shipping cost on subscription
that's sad, that's not common to have subscriptions with shipping?
and other question, is there a way to not apply discount in a product? I have some coupons, but I don't want to give discount on shipping
It's been asked for before (and I can flag it as feedback for you) but unfortunately they havent been able to prioritize it
and there's a way to specify which products a coupon should apply to. You'd set applies_to.products (see https://stripe.com/docs/api/coupons/create#create_coupon-applies_to-products)