@@ -38,7 +38,7 @@ |
||
38 | 38 | $table->addRow([ |
39 | 39 | $history->id, |
40 | 40 | $history->wallet->currency->name(), |
41 | - '<span class = "' . ($amount > 0 ? "text-success" : 'text-danger') . '">' . $amount . '</span>', |
|
41 | + '<span class = "'.($amount > 0 ? "text-success" : 'text-danger').'">'.$amount.'</span>', |
|
42 | 42 | $history->comment, |
43 | 43 | $history->date_create |
44 | 44 | ]); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $transfer->confirm(); |
44 | 44 | } |
45 | 45 | $count = count($transfers); |
46 | - return 'Завершено <b>' . $count . '</b> ' . \Tools::getNumEnding($count, ['перевод', 'перевода', 'переводов']); |
|
46 | + return 'Завершено <b>'.$count.'</b> '.\Tools::getNumEnding($count, ['перевод', 'перевода', 'переводов']); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | } |
51 | 51 | $count = count($pays); |
52 | - return 'Оплачено <b>' . $count . '</b> ' . \Tools::getNumEnding($pays, ['счет', 'счета', 'счетов']); |
|
52 | + return 'Оплачено <b>'.$count.'</b> '.\Tools::getNumEnding($pays, ['счет', 'счета', 'счетов']); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $transfer->cancel(); |
44 | 44 | } |
45 | 45 | $count = count($transfers); |
46 | - return 'Отменено <b>' . $count . '</b> ' . \Tools::getNumEnding($count, ['перевод', 'перевода', 'переводов']); |
|
46 | + return 'Отменено <b>'.$count.'</b> '.\Tools::getNumEnding($count, ['перевод', 'перевода', 'переводов']); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | } |
@@ -61,21 +61,21 @@ |
||
61 | 61 | if ($first) { |
62 | 62 | $first = false; |
63 | 63 | } else { |
64 | - $string.= '<br />'; |
|
64 | + $string .= '<br />'; |
|
65 | 65 | } |
66 | - $string.= '<span style="white-space:nowrap;">'; |
|
67 | - $string.= number_format($sum, 2, '.', ' '); |
|
66 | + $string .= '<span style="white-space:nowrap;">'; |
|
67 | + $string .= number_format($sum, 2, '.', ' '); |
|
68 | 68 | if (\App::$cur->money) { |
69 | 69 | $currency = \Money\Currency::get($currency_id); |
70 | 70 | if ($currency) { |
71 | - $string.= ' ' . $currency->acronym(); |
|
71 | + $string .= ' '.$currency->acronym(); |
|
72 | 72 | } else { |
73 | - $string.= ' руб.'; |
|
73 | + $string .= ' руб.'; |
|
74 | 74 | } |
75 | 75 | } else { |
76 | - $string.= ' руб.'; |
|
76 | + $string .= ' руб.'; |
|
77 | 77 | } |
78 | - $string.= '</span>'; |
|
78 | + $string .= '</span>'; |
|
79 | 79 | } |
80 | 80 | return $string; |
81 | 81 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public static function goToMerchant($payId, $amount, $currency, $description = '', $success = '/', $false = '/') |
22 | 22 | { |
23 | 23 | $wallets = \App::$cur->money->getUserWallets(); |
24 | - \Tools::redirect('/money/walletPay/' . $payId . '/' . $wallets[$currency->id]->id); |
|
24 | + \Tools::redirect('/money/walletPay/'.$payId.'/'.$wallets[$currency->id]->id); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | } |
@@ -20,14 +20,14 @@ |
||
20 | 20 | |
21 | 21 | public static function goToMerchant($payId, $amount, $currency, $description = '', $success = '/', $false = '/') |
22 | 22 | { |
23 | - \Tools::redirect('/money/primaryPay/' . $payId . '/' . $currency->id); |
|
23 | + \Tools::redirect('/money/primaryPay/'.$payId.'/'.$currency->id); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | public static function getFinalSum($pay, $method) |
27 | 27 | { |
28 | 28 | $sum = parent::getFinalSum($pay, $method); |
29 | 29 | if ($pay->data && $cart = \Ecommerce\Cart::get($pay->data)) { |
30 | - $extra = '0.' . (strlen((string) $cart->id) > 1 ? substr((string) $cart->id, -2) : $cart->id); |
|
30 | + $extra = '0.'.(strlen((string) $cart->id) > 1 ? substr((string) $cart->id, -2) : $cart->id); |
|
31 | 31 | } else { |
32 | 32 | $extra = 0; |
33 | 33 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $data['m_key'] |
35 | 35 | ); |
36 | 36 | $data['m_sign'] = strtoupper(hash('sha256', implode(':', $arHash))); |
37 | - \Tools::redirect('http://payeer.com/merchant/?' . http_build_query($data)); |
|
37 | + \Tools::redirect('http://payeer.com/merchant/?'.http_build_query($data)); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public static function reciver($data, $status) |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | $m_key); |
58 | 58 | $sign_hash = strtoupper(hash('sha256', implode(':', $arHash))); |
59 | 59 | if ($_POST['m_sign'] == $sign_hash && $_POST['m_status'] == 'success') { |
60 | - $result['callback'] = $_POST['m_orderid'] . '|success'; |
|
60 | + $result['callback'] = $_POST['m_orderid'].'|success'; |
|
61 | 61 | $result['payId'] = $data["m_orderid"]; |
62 | 62 | $result['status'] = 'success'; |
63 | 63 | } else { |
64 | - $result['callback'] = $_POST['m_orderid'] . '|error'; |
|
64 | + $result['callback'] = $_POST['m_orderid'].'|error'; |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $request['PAYMENT_AMOUNT'] = $amount; |
26 | 26 | $request['PAYMENT_UNITS'] = $merchantCurrency->code; |
27 | 27 | $request['SUGGESTED_MEMO'] = $description; |
28 | - $request['STATUS_URL'] = 'http://' . INJI_DOMAIN_NAME . '/money/merchants/reciver/PerfectMoney'; |
|
28 | + $request['STATUS_URL'] = 'http://'.INJI_DOMAIN_NAME.'/money/merchants/reciver/PerfectMoney'; |
|
29 | 29 | $request['PAYMENT_URL'] = $success; |
30 | 30 | $request['NOPAYMENT_URL'] = $false; |
31 | 31 | $request['PAYMENT_METHOD'] = 'PerfectMoney account'; |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | |
51 | 51 | $config = static::getConfig(); |
52 | 52 | |
53 | - $string = $_POST['PAYMENT_ID'] . ':' . $_POST['PAYEE_ACCOUNT'] . ':' . |
|
54 | - $_POST['PAYMENT_AMOUNT'] . ':' . $_POST['PAYMENT_UNITS'] . ':' . |
|
55 | - $_POST['PAYMENT_BATCH_NUM'] . ':' . |
|
56 | - $_POST['PAYER_ACCOUNT'] . ':' . strtoupper(md5($config['secret'])) . ':' . |
|
53 | + $string = $_POST['PAYMENT_ID'].':'.$_POST['PAYEE_ACCOUNT'].':'. |
|
54 | + $_POST['PAYMENT_AMOUNT'].':'.$_POST['PAYMENT_UNITS'].':'. |
|
55 | + $_POST['PAYMENT_BATCH_NUM'].':'. |
|
56 | + $_POST['PAYER_ACCOUNT'].':'.strtoupper(md5($config['secret'])).':'. |
|
57 | 57 | $_POST['TIMESTAMPGMT']; |
58 | 58 | |
59 | 59 | $hash = strtoupper(md5($string)); |