#Action Admin Jackson
1 messages · Page 1 of 1 (latest)
Hi, if you're using shopify, you'd need to contact them.
Thank you for your response. We have contacted them. We have enabled tax collection via shopify. When we do this, our checkout collects tax. But when our stripe account receives it, Stripe refunds the tax we collected.
Can you share an example request id where this have happened? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_KndCDIGgBvaKcR
I see the follow up messages, no need to tag. Just wrapping up helping another developer here.
Oh haha I apologize didnt know how it worked. Thank you for checking in on that.
No problem, looking at this request id now.
From looking at the Payment Intent, it was created for $2.15 https://dashboard.stripe.com/logs/req_TlLwVOB2hl234l . Then, you only captured $1.99, https://dashboard.stripe.com/logs/req_WD920svIqv6LJd . You can capture the full amount but in this case you did not. Any additional amount not captured will be automatically refunded: https://stripe.com/docs/api/payment_intents/capture#capture_payment_intent-amount_to_capture
It has nothing to do with taxes in this case.
The reason why 2.15 was the payment intent, is because we initiated Texas sales tax collection via Shopify. Meaning Shopify calculated the correct sales tax, added it to the cart total, and the customer was charged for 2.15. It then was transferred to Stripe, and stripe refunded 0.16 as you said above. Do you know how to make Stripe automatically calculate & capture the 0.16 with its own functionality? Or do you know how we can make stripe NOT refund the 0.16 when Shopify calculates the tax?
If you do not want Stripe to refund it, when you capture the Payment Intent, you need to explicitly pass the full amount on this parameter, https://stripe.com/docs/api/payment_intents/capture#capture_payment_intent-amount_to_capture.
It looks like you'd want to talk to Shopify to make sure that they capture the full amount
We are sure that Shopify captures and calculates the correct amount. We just need Stripe to not refund it. Do you mind helping me plug this into our stripe?
The code is coming from Shopify so there is nothing we can do on our end. Form the code, on the capture request, https://dashboard.stripe.com/logs/req_WD920svIqv6LJd you can see that a partial amount is passed: amount_to_capture: "199"
You'd want to make sure that they are passing amount_to_capture: "215" instead.
So you suggest we contact Shopify and ask how they can adjust the amount to capture from 199 to 215?
Meaning the code that is needed to prompt a full 216.
That is correct, they are passing these amounts.