Skip to content

Commit

Permalink
В платёжную форму добавлен параметр paymentType
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaoda committed Jun 27, 2017
1 parent 76fadc6 commit 96b7bf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/YaKassaPaymentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public function toArray(): array
$this->setParameter('cps_email', $this->order->getCustomerEmail());
$this->setParameter('cps_phone', $this->order->getCustomerPhone());

if ($pm = $this->order->getPaymentType()) {
$this->setParameter('paymentType', $pm);
}

if ($this->order instanceof YaKassaOrder54FZ) {
$this->setParameter('ym_merchant_receipt', json_encode($this->getMerchantReceipt($this->order)));
}
Expand Down

0 comments on commit 96b7bf8

Please sign in to comment.