#ReneDenmark-Tax
1 messages · Page 1 of 1 (latest)
It depends on how you implement and pass in the country to the method stripe.confirmPayment
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
}
},
});
Can you provide the PaymentIntent Id?
pm_1LV9a6JsjvjUViQZmC4dpcfk - testmode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
https://stripe.com/docs/tax/customer-locations#address-hierarchy is what it's based on.
Should I change anything for it to use the billing address in the ConfirmPayment?
as far as I can tell you seem to be doing everything correctly
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
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
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
We are as it is the EU. It is not B2B.
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.)
Ok. We have to pay danish taxes on everything unless the user has chosen a country.
best thing to do if oyu're confused about a case is to call https://stripe.com/docs/api/invoices/retrieve and check the tax_details breakdown mentioned in the doc I linked
I don't know how tax works myself, it's more of a product question not an API one