#Rwong
1 messages · Page 1 of 1 (latest)
Hi
What are you using as an integration ?
I'm using the paymentMethodService to create an Ideal Payment Method. I then use this to create a PaymentIntent with the paymentMethodId. When customer pays, the payment is charged.
e.g.
var paymentIntent = paymentIntentService.Create(new PaymentIntentCreateOptions
{
Description = request.Description,
Amount = Convert.ToInt64(request.Amount * 100),
Currency = request.Currency,
PaymentMethodTypes = new List<string> { StripePaymentMethodType.IDeal },
PaymentMethod = paymentMethod.Id,
ReturnUrl = request.SuccessUrl,
Confirm = true,
//Store PurchaseId for WebHook to retrieve purchase information
Metadata = new Dictionary<string, string> {
{ "PurchaseId", $"{request.PurchaseId}" },
{ "PaymentReferenceNumber", $"{request.PaymentReferenceNumber}"}},
});
return paymentIntent;
i.e. we're managing the checkout session ourselves.
Thanks for sharing that part of your integration, I don't see automatic tax .... where you want to turn off the automatic tax ?
That's my questions, cos Stripe is currently deducting tax automatically on our behalf. So how do I turn this off?
Can you share a PaymentIntent Id where stripe is deducting tax ?
and what amount you are suspecting please ?
It's not about a particular payment. This is the response we got from customer Care
Hi there,
Thank you for reaching Stripe. I understand that you have a question on how to disable taxes on your remittance. I will be happy to shed some light into this matter.
As I’ve checked, once you have activated Stripe Tax from the settings in your dashboard, it can’t be deactivated so to speak. However, if you no longer want to use Stripe Tax you can choose to not have it active for a charge.
To do this via the dashboard, you’ll need to ensure that you have toggled off “Calculate Tax Automatically” in any of the respective invoices or subscriptions.
If you are using the API, then you will need to make sure that you pass automatic_tax: { enabled: false } when creating a checkout session, invoice, or subscription. Once you have ensured that Automatic Tax is toggled to be off on the relevant charge, we won’t calculate the tax for you and there will be no charge for the Stripe Tax product.
I hope this would help. If you have any other questions, please feel free to reach out to us. We will be happy to help.
Best,
Richard
Our toggle is currently on
Customer care says this cannot be turned off, and we need to create a session to disable this.
For the code you are sharing, there is no stripe tax taking into account. That's why I asked you to share a sample PaymentIntent and flag what amount you think it was Stripe Tax.
Yeah but it's suppose to be automatic, no?
When you specify that. For example when creating a Subscription you can specify to use custom tax rates or use stripe automatic tax
https://stripe.com/docs/api/subscriptions/create#create_subscription-automatic_tax-enabled
If you specify nothing then no tax will be calculated
So what does the toggle "Enable automatic tax calulcation" do?
That's a global setting in order to enable automatic tax calculation
When creating Invoice and subscription you need to disable it
But the code you are sharing with me it's PaymentIntent and there is no tax calculation. Unless you have a PaymentIntent Id that you think there was tax calculation...
I've only made 1 live purchase - pi_3MjKpgJspj2jbZG90pwdGpDA
For that Payment there was no amount... if you are using the code you shared, there'll be no tax calculation automatically
This is the paymentId py_3MjKpgJspj2jbZG90noFfwZv
it's for 89 cents
I don't see tax either. I was just confused by response from CustomerSupport suggesting that we need to pass automatic_tax: { enabled: false } else tax will be automatically calculated.
Yeah, that when using Invoice and Subscription API, and not for PaymentIntent API, which you are using
probably the answer you get wasn't clear enough
I hope now it's clear
Yes, makes more sense now, thanks for clearing that up.
Welcome!