<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>PayPal Checkout Problem when adding Taxcategorie</title>
  <link rel="self" href="https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113095041" />
  <subtitle>PayPal Checkout Problem when adding Taxcategorie</subtitle>
  <id>https://liferay.dev/nl/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113095041</id>
  <updated>2026-06-01T12:44:17Z</updated>
  <dc:date>2026-06-01T12:44:17Z</dc:date>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113294584" />
    <author>
      <name>Corbin Murakami</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113294584</id>
    <updated>2019-04-19T08:45:33Z</updated>
    <published>2019-04-19T08:45:33Z</published>
    <summary type="html">I&amp;#39;ve updated the &lt;a href="https://issues.liferay.com/browse/EMP-26"&gt;ticket&lt;/a&gt; with the additional information. Feel free to add yourself as a watcher to see progress.</summary>
    <dc:creator>Corbin Murakami</dc:creator>
    <dc:date>2019-04-19T08:45:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113292426" />
    <author>
      <name>Sipin Verma</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113292426</id>
    <updated>2019-04-19T04:11:20Z</updated>
    <published>2019-04-19T04:11:20Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;Dieter MetzlerPayPal checkout works fine when the product has no taxcategorie, but the following error appears when I add a taxcategorie to a product:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;2019-04-09 15:02:37.172 ERROR [ajp-nio-8009-exec-15][HttpConnection:153] Response code: 400     Error response: {"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].amount","issue":"Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"xxxxxxxxx"}
2019-04-09 15:02:37.177 WARN  [ajp-nio-8009-exec-15][PortalImpl:6899] response-code: 400        details: name: VALIDATION_ERROR message: Invalid request - see details  details: [{_  "field": "transactions[0].amount",_  "issue": "Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"_}]     debug-id: xxxxxxxxxx information-link: https://developer.paypal.com/docs/api/payments/#errors [Sanitized]
response-code: 400      details: name: VALIDATION_ERROR message: Invalid request - see details  details: [{_  "field": "transactions[0].amount",_  "issue": "Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"_}]     debug-id: c3d4f7d8eef88 information-link: https://developer.paypal.com/docs/api/payments/#errors [Sanitized]
        at com.paypal.base.rest.PayPalRESTException.createFromHttpErrorException(PayPalRESTException.java:72)
        at com.paypal.base.rest.PayPalResource.execute(PayPalResource.java:431)
        at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:295)
        at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:228)
        at com.paypal.api.payments.Payment.create(Payment.java:149)
        at &lt;/code&gt;&lt;/pre&gt;&lt;br&gt;I have testet it with the latest Liferay Commerce Bundle&amp;nbsp;&lt;a href="https://releases.liferay.com/commerce/1.1.3/liferay-commerce-1.1.3-201903122143.7z"&gt;Liferay Portal CE 7.1 GA3 and Liferay Commerce 1.1.3 (Bundled with Tomcat)&lt;/a&gt;&lt;br&gt;Do I have a mistake in my configuration or is this a known bug.&lt;br&gt;&lt;br&gt;Any help is appreciate.&lt;br&gt;&lt;br&gt;Kind regards&lt;br&gt;&lt;br&gt;​​​​​​​Dieter&lt;/blockquote&gt;Dieter,&lt;br&gt;For me the PayPal transaction is not successful even if no Tax is configured for the products.&lt;br&gt;Still it gives me the same error that you reported.&lt;br&gt;&lt;br&gt;Can you brief me about your Tax configurations? &lt;br&gt;​​​​​​​Thanks in Advance&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sipin Verma</dc:creator>
    <dc:date>2019-04-19T04:11:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113292404" />
    <author>
      <name>Sipin Verma</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113292404</id>
    <updated>2019-04-19T04:10:07Z</updated>
    <published>2019-04-19T04:10:07Z</published>
    <summary type="html">For me the PayPal transaction is not successful even if no Tax is configured for the products.&lt;br /&gt;Still it gives me the same error that you reported.</summary>
    <dc:creator>Sipin Verma</dc:creator>
    <dc:date>2019-04-19T04:10:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113291692" />
    <author>
      <name>Sipin Verma</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113291692</id>
    <updated>2019-04-19T04:00:09Z</updated>
    <published>2019-04-19T04:00:09Z</published>
    <summary type="html">I have a downloaded source code of liferay commerce in which I see below method code in &lt;br /&gt;&lt;a href="https://github.com/liferay/com-liferay-commerce/blob/7.1.x/commerce-payment-method-paypal/src/main/java/com/liferay/commerce/payment/method/paypal/internal/PayPalCommercePaymentMethod.java"&gt;commerce-payment-method-paypal/src/main/java/com/liferay/commerce/payment/method/paypal/internal/PayPalCommercePaymentMethod.java&lt;br /&gt;&lt;br /&gt;private Amount _getAmount(&lt;br /&gt;        CommerceOrder commerceOrder, CommerceCurrency commerceCurrency) {&lt;br /&gt;&lt;br /&gt;        Amount amount = new Amount();&lt;br /&gt;&lt;br /&gt;        amount.setCurrency(StringUtil.toUpperCase(commerceCurrency.getCode()));&lt;br /&gt;&lt;br /&gt;        Details details = new Details();&lt;br /&gt;&lt;br /&gt;        details.setShipping(&lt;br /&gt;            _payPalDecimalFormat.format(commerceOrder.getShippingAmount()));&lt;br /&gt;        details.setSubtotal(&lt;br /&gt;            _payPalDecimalFormat.format(commerceOrder.getSubtotal()));&lt;br /&gt;&lt;br /&gt;        amount.setDetails(details);&lt;br /&gt;&lt;br /&gt;        amount.setTotal(_payPalDecimalFormat.format(commerceOrder.getTotal()));&lt;br /&gt;&lt;br /&gt;        return amount;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;Here we can see that only shipping info and subtotal is set in the Details object which is being set in the Transaction object (_getTransactions method). Hence the code to set the Tax amount is not written.&lt;br /&gt;&lt;br /&gt;I checked the latest code on GitHub &amp;amp; found that the code has been updated in _getAmount method but Tax is still not taken care:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/liferay/com-liferay-commerce/blob/7.1.x/commerce-payment-method-paypal/src/main/java/com/liferay/commerce/payment/method/paypal/internal/PayPalCommercePaymentMethod.java"&gt;https://github.com/liferay/com-liferay-commerce/blob/7.1.x/commerce-payment-method-paypal/src/main/java/com/liferay/commerce/payment/method/paypal/internal/PayPalCommercePaymentMethod.java&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;private Amount _getAmount(CommerceOrder commerceOrder)&lt;br /&gt;        throws PortalException {&lt;br /&gt;&lt;br /&gt;        Amount amount = new Amount();&lt;br /&gt;&lt;br /&gt;        CommerceCurrency commerceCurrency = commerceOrder.getCommerceCurrency();&lt;br /&gt;&lt;br /&gt;        amount.setCurrency(StringUtil.toUpperCase(commerceCurrency.getCode()));&lt;br /&gt;&lt;br /&gt;        amount.setTotal(_payPalDecimalFormat.format(commerceOrder.getTotal()));&lt;br /&gt;&lt;br /&gt;        return amount;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;This is a big issue. Incomplete code is released. For me none of the PayPal transactions are successful.</summary>
    <dc:creator>Sipin Verma</dc:creator>
    <dc:date>2019-04-19T04:00:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113237810" />
    <author>
      <name>Corbin Murakami</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113237810</id>
    <updated>2019-04-15T14:32:38Z</updated>
    <published>2019-04-15T14:32:38Z</published>
    <summary type="html">Hi Dieter, thanks for reporting. We&amp;#39;re looking into it: https://issues.liferay.com/browse/EMP-26</summary>
    <dc:creator>Corbin Murakami</dc:creator>
    <dc:date>2019-04-15T14:32:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113237622" />
    <author>
      <name>Dieter Metzler</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113237622</id>
    <updated>2019-04-15T14:08:00Z</updated>
    <published>2019-04-15T14:08:00Z</published>
    <summary type="html">Today I have downloaded and installed the new Liferay Commerce Version 1.1.4 (&lt;a href="https://releases.liferay.com/commerce/1.1.4/liferay-commerce-1.1.4-201904121113.7z"&gt;&lt;u&gt;&lt;span style="color: #0066cc"&gt;&lt;/span&gt;Liferay Portal CE 7.1 GA3 and Liferay Commerce 1.1.4 (Bundled with Tomcat)&lt;/u&gt;&lt;/a&gt;) and hoped the Bug was resolved, but sadly still the same error in the new Version. &lt;br /&gt;&lt;br /&gt;Do someone knows a useful workaround to use Liferay Commerce with Paypal and taxes?&lt;br /&gt;&lt;br /&gt;Thanks in advance for guidance.</summary>
    <dc:creator>Dieter Metzler</dc:creator>
    <dc:date>2019-04-15T14:08:00Z</dc:date>
  </entry>
  <entry>
    <title>PayPal Checkout Problem when adding Taxcategorie</title>
    <link rel="alternate" href="https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113095040" />
    <author>
      <name>Dieter Metzler</name>
    </author>
    <id>https://liferay.dev/nl/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113095040</id>
    <updated>2019-04-09T15:21:23Z</updated>
    <published>2019-04-09T15:21:23Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;PayPal checkout works fine when the product has no taxcategorie, but the following error appears when I add a taxcategorie to a product:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;2019-04-09 15:02:37.172 ERROR [ajp-nio-8009-exec-15][HttpConnection:153] Response code: 400     Error response: {"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].amount","issue":"Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"xxxxxxxxx"}
2019-04-09 15:02:37.177 WARN  [ajp-nio-8009-exec-15][PortalImpl:6899] response-code: 400        details: name: VALIDATION_ERROR message: Invalid request - see details  details: [{_  "field": "transactions[0].amount",_  "issue": "Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"_}]     debug-id: xxxxxxxxxx information-link: https://developer.paypal.com/docs/api/payments/#errors [Sanitized]
response-code: 400      details: name: VALIDATION_ERROR message: Invalid request - see details  details: [{_  "field": "transactions[0].amount",_  "issue": "Transaction amount details (subtotal, tax, shipping) must add up to specified amount total"_}]     debug-id: c3d4f7d8eef88 information-link: https://developer.paypal.com/docs/api/payments/#errors [Sanitized]
        at com.paypal.base.rest.PayPalRESTException.createFromHttpErrorException(PayPalRESTException.java:72)
        at com.paypal.base.rest.PayPalResource.execute(PayPalResource.java:431)
        at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:295)
        at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:228)
        at com.paypal.api.payments.Payment.create(Payment.java:149)
        at &lt;/code&gt;&lt;/pre&gt;&lt;br&gt;I have testet it with the latest Liferay Commerce Bundle&amp;nbsp;&lt;a href="https://releases.liferay.com/commerce/1.1.3/liferay-commerce-1.1.3-201903122143.7z"&gt;Liferay Portal CE 7.1 GA3 and Liferay Commerce 1.1.3 (Bundled with Tomcat)&lt;/a&gt;&lt;br&gt;Do I have a mistake in my configuration or is this a known bug.&lt;br&gt;&lt;br&gt;Any help is appreciate.&lt;br&gt;&lt;br&gt;Kind regards&lt;br&gt;&lt;br&gt;​​​​​​​Dieter&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Dieter Metzler</dc:creator>
    <dc:date>2019-04-09T15:21:23Z</dc:date>
  </entry>
</feed>
