[Skip to main content](#vessel-content)

#   error PagSeguro

##

- **[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")**
- [![adriel350's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37388-adriel350 "View adriel350's Profile") Topic Author
- [ Offline](/forum/user/37388-adriel350)

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 2 weeks ago [\#216599](#216599) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216599 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")* was created by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.1
-- Error-message(debug-mod must be tuned on) -- : [HTTP 400] - BAD_REQUEST [11029] - Item amount invalid pattern: 1,490.00. Must fit the patern: \d+.\d{2}

Hi,
I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:

[HTTP 400] - BAD_REQUEST [11029] - Item amount invalid pattern: 1,490.00. Must fit the patern: \d+.\d{2}

someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 weeks ago [\#216606](#216606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216606 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")*

Hi,

Change the line:
$pagSeguroItem-&gt;setAmount(number_format($product-&gt;order_product_price, 2));
to:
$pagSeguroItem-&gt;setAmount(PagSeguroHelper::decimalFormat($product-&gt;order_product_price, 2));

in the file plugins/hikashoppayment/pageseguro/pageseguro.php and try again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")**
- [![adriel350's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37388-adriel350 "View adriel350's Profile") Topic Author
- [ Offline](/forum/user/37388-adriel350)

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 2 weeks ago [\#216660](#216660) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216660 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")*

hi , the following error happens now :

[HTTP 400] - BAD_REQUEST [11029] - Item amount invalid pattern: 1490.00000. Must fit the patern: \d+.\d{2}

Read some articles from people who had the same problem , they say the PagSeguro must receive the price thus : 1490.00 , not so 1490.00000 or so 1,490.00.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 weeks ago [\#216674](#216674) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216674 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")*

Hi,

Try like that then: Code:

$pagSeguroItem-&gt;setAmount(round(PagSeguroHelper::decimalFormat($product-&gt;order_product_price), 2));

The following user(s) said Thank You: [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")**
- [![adriel350's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37388-adriel350 "View adriel350's Profile") Topic Author
- [ Offline](/forum/user/37388-adriel350)

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 2 weeks ago [\#216767](#216767) by [adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")  Replied by *[adriel350](/forum/user/37388-adriel350 "View adriel350's Profile")* on topic *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216767 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")*

hi , it worked perfectly.

I recommend updating the plugin so that in future it is not necessary to make this change.

Thanks for the quick response and solution , bye.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 weeks ago [\#216768](#216768) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[error PagSeguro](/forum/29-payment-methods/879725-error-pagseguro#216768 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  Hi, I use PagSeguro payment method on my site, provided by hikashop , already took place a purchase using this plugin , so I know that it works , but apparently has a problem when dealing with larger numbers than 1000, the following error appears on the screen:  &#91;HTTP 400&#93; - BAD&#95;REQUEST &#91;11029&#93; - Item amount invalid pattern: 1,490.00. Must fit the patern: &#92;d+.&#92;d{2}  someone could help me solve it , is a misconfiguration on my site or the plugin has some php error?")*

Hi,

> I recommend updating the plugin so that in future it is not necessary to make this change.

We always do ![:)](/media/kunena/emoticons/8.png ":)")

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzk3MjUtZXJyb3ItcGFnc2VndXJvP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.249 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
