Skip to content

Commit

Permalink
Merge pull request #35 from hardworm/opencart-3.0
Browse files Browse the repository at this point in the history
Убираем лишние символы из номера
  • Loading branch information
2Garin authored Aug 27, 2020
2 parents 4baea88 + 01b3c62 commit e32b2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unitpay/catalog/controller/extension/payment/unitpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function index()
'resultUrl' => $data['success_url'],
'cashItems' => $this->getOrderItems($order_info['currency_code'], $order_info['currency_value']),
'customerEmail' => $order_info['email'],
'customerPhone' => $order_info['telephone'],
'customerPhone' => preg_replace('/\D/', '', $order_info['telephone']),
'locale' => $locale,
'signature' => hash('sha256', join('{up}', array(
$data['inv_id'],
Expand Down

0 comments on commit e32b2ba

Please sign in to comment.