Skip to content

Commit

Permalink
Корректировка кода
Browse files Browse the repository at this point in the history
  • Loading branch information
vamcart committed Dec 21, 2018
1 parent 432acb9 commit c9aef73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Plugin/Payment/Controller/YandexController.php
Expand Up @@ -114,8 +114,8 @@ public function before_process ()
$receipt['items'][] = array(
'quantity' => $product['quantity'],
'text' => substr($product['name'], 0, 128),
'paymentMethodType': 'full_prepayment',
'paymentSubjectType': 'commodity',
'paymentMethodType' => 'full_prepayment',
'paymentSubjectType' => 'commodity',
'tax' => $id_tax,
'price' => array(
'amount' => number_format($product['price'], 2, '.', ''),
Expand All @@ -129,8 +129,8 @@ public function before_process ()
$receipt['items'][] = array(
'quantity' => 1,
'text' => substr('Доставка - ' . __($order['ShippingMethod']['name']), 0, 128),
'paymentMethodType': 'full_prepayment',
'paymentSubjectType': 'commodity',
'paymentMethodType' => 'full_prepayment',
'paymentSubjectType' => 'commodity',
'tax' => $id_tax,
'price' => array(
'amount' => number_format($order['Order']['shipping'], 2, '.', ''),
Expand Down

0 comments on commit c9aef73

Please sign in to comment.