#ethan_best-practices

1 messages ยท Page 1 of 1 (latest)

daring vectorBOT
#

๐Ÿ‘‹ 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/1493940294486589492

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

full atlas
#

hi there!

#

so you want a subscription with recurring price and a one-time price?

high plaza
#

Hi! We currently use the invoice api to generate an invoice with the first subscription payment included in the line items. Then after it's paid off we create a subscription as a trial. However we are interested in creating subscriptions as 'active' so we can purposefully include trials

#

We thinking just one price for the subscription

full atlas
#

I'm not sure I understand your use case. can you share a concrete example? something like:

  1. on January first, user pays $20 to start their subscription
  2. then we xxxx
  3. and one month later, the user pays $xx
high plaza
#

Sure, we want a single invoice to contain a subscription costing $10/month. They pay $10 now, and $10/month on a recurring basis. In the same invoice we want to include a book shipped to the customers house, with tax calculated by Stripe.

full atlas
#

then create a subscription with two prices:

  • a recurring price of $10
  • a one time price for the price of the book
#

and the first invoice will be for $10 + book price. and the next invoicex will be only $10.

high plaza
#

Okay but how do I calculate the shipping taxes for the book in the created stripe subscription? I don't see a shipping_cost or shipping_details in the available properties

full atlas
#

then you would add 3 prices to the Subscription: the recurring one, the price of the book, and the shipping cost.

daring vectorBOT
high plaza
#

If that is the case, what tax code do I use for the shipping cost? https://docs.stripe.com/tax/tax-codes the only tax code that sounds right is txcd_92010001 which says is only for cases where the shipping charge is optional. In our case they will be required to pay for shipping of the book.

ivory juniper
#

๐Ÿ‘‹ Hi there! I'm taking over for my colleague. Let me take a look

#

From what I can see, that tax code seems to be fine, and it's the closest match.
If you don't want to use that one, then as the documentation says, you could apply a general tax code like "txcd_20030000"

high plaza
#

Hi arran! One more question we use Stripe shipping rates in our current workflow through invoices. Can I use those in the Subscription?

ivory juniper
#

Sorry, no, Subscriptions don't currently support Shipping Rates. This would have to be added as a regular line item