#ReneDenmark-Tax

1 messages · Page 1 of 1 (latest)

shell sparrow
#

It depends on how you implement and pass in the country to the method stripe.confirmPayment

jolly swallow
#

const { error } = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: '@ViewData["CurrentURL"]@Url.RouteUrl("Payments.Home.Success")?subscriptionId=' + subscriptionid,
billing_details: {
country: countryInput.value,
postalCode: postalInput.value
}
},
});

shell sparrow
#

Can you provide the PaymentIntent Id?

jolly swallow
#

pm_1LV9a6JsjvjUViQZmC4dpcfk - testmode

shell sparrow
jolly swallow
#

Yes

#

I am based in Denmark. I dont know if it somehow forces tax based on IP.

rigid plover
jolly swallow
#

Should I change anything for it to use the billing address in the ConfirmPayment?

rigid plover
#

as far as I can tell you seem to be doing everything correctly

jolly swallow
#

Hmm. Just made a test where I set the country to DE and chose Sweden in dropdown. Tax is still set to DE.

#

pm_1LV9xCJsjvjUViQZ7IGm7D3d

rigid plover
#

where I set the country to DE
in what API field? link to the request ID req_xxx` if you can
chose Sweden in dropdown
what dropdown? screenshot if you can
Tax is still set to DE
where do you see that? screenshot if you can

#

the PaymentMethod ID is the least useful thing, at least give me the PaymentIntent ID pi_xxx of the payment

jolly swallow
#

var options = new CustomerCreateOptions
{
Email = req.Email,
//Tax = new CustomerTaxOptions { IpAddress = ip },
//Address = new AddressOptions { Country = req.Country },
Address = new AddressOptions { Country = "DE" },
Metadata = new Dictionary<string, string>
{
{ "UserID", req.UserId },
},
Expand = new List<string> { "tax" },
};
var service = new CustomerService();
var customer = service.Create(options);
return new CreateCustomerResponse
{
Customer = customer,
};
}

#

pi_3LV9waJsjvjUViQZ0lEty6it

rigid plover
#

you're not registered for tax in Germany so it doesn't apply.

jolly swallow
#

We are as it is the EU. It is not B2B.

rigid plover
#

I'm just telling you what my internal tool says.

#

DKK 59.00 / DKK 0.00 / DKK 0.00
19.00%
SR1
inclusive
vat
nontaxable / seller_not_registered
GERMANY
Umsatzsteuer (USt.)

jolly swallow
#

Ok. We have to pay danish taxes on everything unless the user has chosen a country.

rigid plover
#

I don't know how tax works myself, it's more of a product question not an API one

jolly swallow
#

So thats why I want to start out with DK and then use whatever the user enters in the dropdown.

#

Ok. I will keep testing and see if I can find how to change it