#ninja-checkout-tax

1 messages · Page 1 of 1 (latest)

wintry boltBOT
stray tartan
#

ninja-checkout-tax

prime venture
#
  1. On the invoice i need the business VAT number to be included on, now it not.
  2. In the checkout, i need to forc the customer to use their email and not some apple pay or something else that does not use a email. I NEED a customers email adress
#

also 1. I dont collect any adress info etc, so how can i apply a standard VAT to all purshases?

stray ridge
stray ridge
prime venture
gilded moon
#

Good question. Looking in to this. And to be clear this is for one-time payments? Subscriptions always require an email anyway as far as I know

prime venture
#

Yes 1 time payments

gilded moon
#

As far as I can see email is always required and if the user uses apple or google pay, the email from those IDs will populate the customer email field

#

Are you not seeing that in your own tests?

stray ridge
#

If you're having issues, can you share an example checkout session that paid this way and does not have the email address?

prime venture
#

So yes i know that the user might choose apple or google pay, BUT i don't want to allow that basically.

Okay, i should prob phrase it a bit better:
The only way a customer should be able to buy a product should be with their email adress in the input field. So no third party payment solutions as apple etc.

stray ridge
prime venture
#

perfect

#

also, what's the uptime for the webhooks? possible in anyway after an order that the webhook would not be triggerd? if so, we loose all info

#

and secondly, for the webhook i was provides a secret key for development mode. But where can i find that key for production mode?

green oasis
#

Hi 👋 I'm jumping in as my teammate needed to step away. The Stripe service's uptime can be found here:
https://status.stripe.com/
There is a section showing the uptime of our webhook generation service there also.

The signing secret that a webhook endpoint uses is generated when the endpoint is created, so when you create your livemode endpoint you'll get the signing secret then (either as part of the API response, or in the signing secret field in the dashboard).

prime venture
#

Ah alright so i need to add the endpoint and then i get the secret key?

green oasis
#

Correct, the signing secret will be unique for each endpoint, so you won't have that value until the endpoint is created in Stripe.

prime venture
#

Oh alright perfect!

#

i didnt understand the guy before, i asked how i can use 1 standard VAT rate for all payments, do i need to pass something to the checkout?

green oasis
#

There are two flavors of tax calculations within Stripe:

  • Stripe Tax - the more automatic way of doing things (includes a fee)
  • Tax Rates - the more manual more free approach

When you mentioned checkout previously, were you referring to using our Checkout Sessions? Or do you have a custom checkout experience that you've built?

prime venture
#

I use your pre build checkout.

Some usefull information:
I dont collect anything more than email and payment. So it cant figure out VAT by it self, so right now it does not show any VAT at all. So i think i need to specify the VAT, and i only sell in EU so it should be my countries VAT

green oasis
prime venture
#

Hmm right, can you show example if I’m gonna pass in Finland VAT?

green oasis
#

I'm not sure what values you will want to provide for Finland VAT specifically, you'll want to speak with your tax advisor regarding those details, but first you would use this endpoint to create a Tax Rate object based on those details:
https://stripe.com/docs/api/tax_rates/create#create_tax_rate

Then pass the ID of that Tax Rate to line_items.tax_rates when creating the Checkout Session.

prime venture
#

Ahhh oh damn I thought I could just pass like a string of the country.

Hmm this got more complex than I thought of lol. Well then maybe it’s just best to let stripe figure out the tax it self.

For that I need to collect the address of the user right? How can I enable that?

green oasis
#

Correct, there are several factors that we need to know to determine tax amounts automatically:

  • What you're selling
  • Where you're selling from
  • Where you're selling to

This doc walks through setting up the details from your account perspective (what you're selling, where from, and where you're registered to collect tax):
https://stripe.com/docs/tax/set-up

Once that is set up you'll need to adjust your integration so the Checkout Sessions have address information available to them and tun automatic_tax on for them. This doc walks through that process, and talks about the various options that are available:
https://stripe.com/docs/tax/checkout

prime venture
#

Okay nice, do i need to do it for both test mode and prod mode?

upbeat pike
#

👋 Catching up and stepping in for my teammate

#

I don't believe any tax registrations you set up in test mode are propagated to live mode

prime venture
#

right, now i get error in test mode that i dont have tax setup

upbeat pike
prime venture
#

i did that in test mode, and now i get: does not have a tax_behavior set which is required for automatic tax computation.

but i can't find where do add it to my product in the dashboard

#

ah

#

chevron icon..

#

found it

#

now still the fields where the user should type the adress is not visable. But the choose country field is visable tho

upbeat pike
#

This is still with Checkout, correct?

#

Can you share a screenshot of what you're referring to?

prime venture
#

There is no fields for like the city and so on

upbeat pike
#

Got it. Do you have a request ID for your Checkout session creation?

#

@prime venture let me know if you can share the request ID. It should look like req_...

prime venture
#

let me see

#

nope

#

but i see a ID

#

cs_test_b1OuhVVrez5PXzxrVj14RwUe7mVEbEjePveElxt9ofUeac9ZqxczQv0dzG

upbeat pike
#

Thanks! I believe this is expected. The price used for this Checkout session is for a product that's delivered electronically, and card payments don't require collection of full addresses

prime venture
#

ohh alright, so the VAT will work with only country?

upbeat pike
#

If you want to always collect a billing address, you can create the Checkout session with billing_address_collection: required