Offsite Payment App: Retrieve VAT Before Redirecting to Payment Gateway

We are implementing an Offsite Payment App. Our payment provider requires the VAT amount before redirecting the customer to the payment page.

We know that Order.taxLines contains the VAT breakdown, but the Order is only created after the payment has been completed.

During the Payment Session callback, is there any supported API that exposes the equivalent taxLines (or tax breakdown) for the current Checkout or Cart before the Order exists?

If not, what is the recommended approach for payment providers that require the VAT amount before processing the payment?

Hi @Miguel_Angel_Camacho, thanks for reaching out about this. We’d like to understand your use case better and explore how we can help.

To move forward, can you please contact our support team with the following details:

  • Is this a regulatory requirement?
  • Can you share official documentation on the requirement?
  • What payment app are you requesting this for?
  • Which payment method within the app needs tax details?
  • Any other relevant information that would help us support your request.

Thank you!

Hi @Paige-Shopify

  1. Yes. In Colombia, the payment gateway must receive the VAT (IVA) amount associated with the transaction. This is required to correctly process and report the payment according to local tax requirements.
  2. We are currently gathering the relevant regulatory documentation and can provide it once available. However, this is a standard requirement for payment processing in Colombia, where the VAT amount must be included as part of the transaction information sent to the payment gateway.
  3. This request is for our Shopify Offsite Payment App integration with Openpay Colombia.
  4. The payment methods processed through our Openpay Colombia integration require the VAT amount before the customer is redirected to the payment gateway.
  5. Our main challenge is that Shopify already calculates the taxes during checkout, but the VAT breakdown is not available in the Payment Session payload received by an Offsite Payment App.

I noticed more devs are having this issue:

Thanks for sharing @Miguel_Angel_Camacho. Can you share that information in a ticket with Support created from help.shopify.com? We will assist you from there.