|
@@ 93-105 (lines=13) @@
|
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
// add payment fee as an order line if it's set |
| 93 |
|
if ($this->dandomainPayment->getPaymentFee() && 0 !== (int) $this->dandomainPayment->getPaymentFee()->getAmount()) { |
| 94 |
|
$paymentFee = (float) $this->dandomainPayment->getPaymentFee()->getAmount() / 100; |
| 95 |
|
|
| 96 |
|
$orderLinePayload = $this->createOrderLine( |
| 97 |
|
$this->dandomainPayment->getPaymentMethod(), |
| 98 |
|
$this->dandomainPayment->getPaymentMethod(), |
| 99 |
|
1, |
| 100 |
|
$paymentFee, |
| 101 |
|
null, |
| 102 |
|
OrderLinePayload::GOODS_TYPE_HANDLING |
| 103 |
|
); |
| 104 |
|
$paymentRequestPayload->addOrderLine($orderLinePayload); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
// add shipping fee as an order line if it's set |
| 108 |
|
if ($this->dandomainPayment->getShippingFee() && 0 !== (int) $this->dandomainPayment->getShippingFee()->getAmount()) { |
|
@@ 108-120 (lines=13) @@
|
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
// add shipping fee as an order line if it's set |
| 108 |
|
if ($this->dandomainPayment->getShippingFee() && 0 !== (int) $this->dandomainPayment->getShippingFee()->getAmount()) { |
| 109 |
|
$shippingFee = (float) $this->dandomainPayment->getShippingFee()->getAmount() / 100; |
| 110 |
|
|
| 111 |
|
$orderLinePayload = $this->createOrderLine( |
| 112 |
|
$this->dandomainPayment->getShippingMethod(), |
| 113 |
|
$this->dandomainPayment->getShippingMethod(), |
| 114 |
|
1, |
| 115 |
|
$shippingFee, |
| 116 |
|
null, |
| 117 |
|
OrderLinePayload::GOODS_TYPE_SHIPMENT |
| 118 |
|
); |
| 119 |
|
$paymentRequestPayload->addOrderLine($orderLinePayload); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
$customerNames = explode(' ', $this->dandomainPayment->getCustomerName(), 2); |
| 123 |
|
$shippingNames = explode(' ', $this->dandomainPayment->getDeliveryName(), 2); |