#GRINGO

1 messages ยท Page 1 of 1 (latest)

rancid impBOT
autumn sigil
#

body.items.push({
price_data: {
currency: 'BRL',
unit_amount: shippingPrice,
product_data: {
name: "Shipping - "+shipping.title,
},
recurring: {
interval: "month"
}
},
})

thick arch
#

๐Ÿ‘‹ Give me a minute to take a look

autumn sigil
#

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

thick arch
#

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

autumn sigil
#

:/

#

do you know if there's a correct way to add shipping to subscriptions?

#

or if it will be developed?

thick arch
#

Shipping is something you'd specify on the Customer (not the Subscription)

autumn sigil
#

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

thick arch
#

Ah, so you want the same customer (with two different subscriptions) to be able to specify different shipping addresses per subscription?

autumn sigil
#

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

thick arch
#

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?

autumn sigil
#

yes, recurring shipping cost

thick arch
#

Have you considered just adding it as an additional Subscriptoin Item on the Subscription?

autumn sigil
#

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

thick arch
#

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

autumn sigil
#

yes I did that

#

and it work on checkout sessions

#

but now on subscription creation

#

hah

thick arch
#

Can you give me an example where it didn't work with Subscriptions?

autumn sigil
#

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

thick arch
#

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

autumn sigil
#

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

thick arch
#

To clarify - you could have a SINGLE product for the shipping, but that product will have multiple prices

autumn sigil
#

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?

thick arch
#

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

autumn sigil
#

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

thick arch
#

It's been asked for before (and I can flag it as feedback for you) but unfortunately they havent been able to prioritize it

autumn sigil
#

yes yes

#

but if I create a new product that I want to support, i need to create a new coupon, right?

#

but thanks for clarifying things for me

thick arch
#

Yeah you'd have to create a new coupon ๐Ÿ˜ฆ

#

and sorry you're hitting so many gaps

autumn sigil
#

HAHAHAH

#

I never found a problem in stripe before