#edutomesco

1 messages · Page 1 of 1 (latest)

worldly cairnBOT
nova elbow
#

Hi 👋

#

What do you mean by Tax type?

lost raven
#

in stripe you need the tax type to create a taxID for a customer

#

I mean "eu_vat" nomenclature

nova elbow
#

And where are you looking to get the type in relation to an amount? In an Invoice? On the Dashboard?

lost raven
#

I mean I take this tax type on my business logic depending the country the user enters

#

But now, I want to know if just with the tax value example ATU12345678 I can know the tax type ?

nova elbow
#

That's still not clear to me where you are tying to get the tax type. What Stripe object are you accessing?

lost raven
#

I need to create the tax id object for a customer

#

My question is my customer enter the tax id value and I'm managing this on my backend

#

so I want to know the easier way to extract the tax type

nova elbow
#

"Extract the tax type" from where? Is retrieving the Customer object and looking up tax_ids.data.type not an acceptable approach?

lost raven
#

But when I create the user

#

I need want to put the tax id object on it

#

I need the tax type and the tax value right?

#

then the tax value the user enters, but the tax type is there any way?

#

to know the tax type given a tax value

nova elbow
#

Okay, is the customer record being created at that point? Or updated?

lost raven
#

created

#

actually I create the user passing the taxID as parameters.

#

the thing is that to know the vat type I ask the user to introduce his country then I map the name of the country with your vat type codes. I want to know if there is a better way to do that?

nova elbow
#

That will return the Customer object that you can examine to determine the tax type

#

Are you currently using webhooks?

lost raven
#

yes

#

but how the customer know the tax type?

#

I dont understand

#

I create an empty customer with any data

#

I mean having this: ATU12345678 how I can know that the tax type is "eu_vat"?

nova elbow
#

You mean when you are making the update to Stripe?

lost raven
#

yes

nova elbow
lost raven
#

yes

#

the user will provide the tax value

nova elbow
#

let me try testing something

lost raven
#

Okey

#

do you get something?

nova elbow
#

Sorry it got a little busy, still testing

#

Wait, nope you will need to know the tax_id type before you submit it to Stripe. So this is something either your customer would need to identify or your integration should pick up on.

nova elbow
nova elbow
#

So it isn't something you would get from Stripe, you would need to know it and provide it when creating/updating the Customer.