#NeetCode-tax

1 messages · Page 1 of 1 (latest)

lusty dock
#

👋 Happy to help

#

I'm wondering what is the risk of just using a 5 digit zip code or just an IP address? Is it super significant?
I'm not too sure about tax requirement for WA, so I'd suggest checking with Support Team

If I really have to collect the full address (for only WA users) is there a convenient way to do that? Doesn't look like any of the Stripe elements support it yet.
Stripe Tax works with Invoicing, Billing, Payment Links and Checkout integrations. For custom payment flows, join the Orders beta. [0] Orders API will be required to support Stripe Tax integration, but not normal Payment Intent flow.

[0] https://stripe.com/docs/tax

Calculate and collect sales tax, VAT, and GST automatically on your Stripe transactions—low or no code integrations available.

lyric heath
lusty dock
#

Is this for one-time or recurring payment?

#

The above doc you shared is for recurring/subscription payment

#

And yes, either type of payment integration will require billing address collection by you

lyric heath
#

Yeah this is for recurring payment.

What I don't understand is Step 4 (collecting the payment info) comes after creating the customer, which requires the billing address. How can I fill in the billing address if I haven't collected payment info yet?

I tried creating a subcription with automatic_tax: {enabled: true}, before filling in the customer billing info, and it definitely doesn't work.

lyric heath
#

Maybe a naive question, but I'm using the Card Element: https://stripe.com/docs/tax/checkout#use-addresses-collected-during-checkout-for-taxes

Which automatically collects Zip code, but if I manually collect the user's full address, will I have to collect zip code twice?

Maybe stripe tax isn't intended to work with Stripe elements? Or maybe this what the Orders Beta is for? Idk maybe I'm confusing myself. But appreciate the help, thanks!

#

Starting to wonder if Stripe checkout is my best bet at this point, but I feel this should definitely be possible with stripe elements.

lusty dock
#

Can you share the subscription ID that doesn't work?

lyric heath
#

Well, I tried to follow the steps out of order, it threw this error (which is expected i think): StripeInvalidRequestError: The customer cus_M3SR7W8iUqpmwk's location isn't recognized by the tax engine. Set an 'address' on the customer object and verify with the 'tax[automatic_tax]' status.

So I'm mainly wondering how to add the address before collecting payment info. I'm skimming through this to get an idea atm: https://www.youtube.com/watch?v=JVPp1FTVywc

In this episode you'll learn how to add Stripe Tax on your custom payment flows to automatically calculate and collect sales tax, VAT, or GST. This is enabled using the new Orders API (beta). If you have previously integrated with Stripe using Payment Intents, you can now migrate that integration to use the Orders API to unlock many advanced com...

â–¶ Play video
#

Looks like they initially set the address simply by using IP, but later on update it with the real address of the user. That makes sense.

lusty dock
#

For recurring payment, the steps will be:

  1. Create a customer
  2. Collect address
  3. Add address information to customer
  4. Create a subscription

The video using Order API is for one-time payment, so I wouldn't recommend to use that since it doesn't require a Customer object

lyric heath
#

Right that makes sense. So i guess it would have to be a multistep flow to complete the payment. Where the user submits their address first, and then submits payment info.

I feel like it's less than ideal, since even on stripe checkout, they can enter their address & payment info in a single step.

lusty dock
lyric heath
#

So I did end up creating a subcription with automatic tax calculation enabled: sub_1LQR8wACJ3FgyPTgPiw3DORe

But interestingly there's no tax applied? I mean I do have 'inclusive' tax set, but I would at least expect 'Total excluding tax' to be different from the total. Am I misinterpreting something?

lusty dock
#

Let me take a look

lyric heath
#

Ah, whoops, didn't realize I didn't register in test mode. Thanks for all the help!