You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
594 B
16 lines
594 B
<?php namespace Wpstudio\Sber\Classes;
|
|
|
|
use OFFLINE\Mall\Classes\Utils\DefaultMoney;
|
|
|
|
/***
|
|
* Helper class to solve this problem https://github.com/OFFLINE-GmbH/oc-mall-plugin/issues/258
|
|
* paypal error after redirect to site
|
|
* After payment via PayPal upon returning to the site, we get an error Call to a member function getCurrent() on null
|
|
*/
|
|
class DefaultMoneyRepair extends DefaultMoney
|
|
{
|
|
final protected function render($contents, array $vars): string
|
|
{
|
|
return number_format($vars['price'],$vars['currency']->decimals, ',', ' ').' '.$vars['currency']->symbol;
|
|
}
|
|
}
|