Skip to content

Commit 96b7bf8

Browse files
committed
В платёжную форму добавлен параметр paymentType
1 parent 76fadc6 commit 96b7bf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/YaKassaPaymentForm.php

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public function toArray(): array
8080
$this->setParameter('cps_email', $this->order->getCustomerEmail());
8181
$this->setParameter('cps_phone', $this->order->getCustomerPhone());
8282

83+
if ($pm = $this->order->getPaymentType()) {
84+
$this->setParameter('paymentType', $pm);
85+
}
86+
8387
if ($this->order instanceof YaKassaOrder54FZ) {
8488
$this->setParameter('ym_merchant_receipt', json_encode($this->getMerchantReceipt($this->order)));
8589
}

0 commit comments

Comments
 (0)