#NeetCode-tax
1 messages · Page 1 of 1 (latest)
👋 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.
I'm following the Billing docs: https://stripe.com/docs/tax/subscriptions#create-a-customer
From reading it i'm assuming we are expected to collecting the billing address ourselves. Do you happen to know if that's how others handled it?
Is this for one-time or recurring payment?
The above doc you shared is for recurring/subscription payment
If you're looking for one-time payment, this should be the right doc: https://stripe.com/docs/tax/orders
And yes, either type of payment integration will require billing address collection by you
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.
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.
In Card Element, you can disable postal code collection to avoid double collection again: https://stripe.com/docs/js/elements_object/create_element?type=card#elements_create-options-hidePostalCode
For recurring payment, the one you shared is the correct doc: https://stripe.com/docs/tax/subscriptions#create-a-customer
Can you share the subscription ID that doesn't work?
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...
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.
For recurring payment, the steps will be:
- Create a customer
- Collect address
- Add address information to customer
- 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
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.
Yup, Stripe Checkout is more straightforward and takes a lot of integration complexity away: https://stripe.com/docs/tax/checkout
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?
Let me take a look
It looks like you did not add Tax Registration in dashboard as part of Stripe Tax Setup process [0]: https://dashboard.stripe.com/test/settings/tax
Ah, whoops, didn't realize I didn't register in test mode. Thanks for all the help!