|
@@ 89-98 (lines=10) @@
|
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
// add payment fee as an order line if it's set |
| 89 |
|
if ($this->paymentRequest->getPaymentFee()) { |
| 90 |
|
$orderLinePayload = new OrderLinePayload( |
| 91 |
|
$this->paymentRequest->getPaymentMethod(), |
| 92 |
|
$this->paymentRequest->getPaymentMethod(), |
| 93 |
|
1, |
| 94 |
|
$this->paymentRequest->getPaymentFee() |
| 95 |
|
); |
| 96 |
|
$orderLinePayload->setGoodsType(OrderLinePayload::GOODS_TYPE_HANDLING); |
| 97 |
|
$paymentRequestPayload->addOrderLine($orderLinePayload); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
// add shipping fee as an order line if it's set |
| 101 |
|
if ($this->paymentRequest->getShippingFee()) { |
|
@@ 101-110 (lines=10) @@
|
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
// add shipping fee as an order line if it's set |
| 101 |
|
if ($this->paymentRequest->getShippingFee()) { |
| 102 |
|
$orderLinePayload = new OrderLinePayload( |
| 103 |
|
$this->paymentRequest->getShippingMethod(), |
| 104 |
|
$this->paymentRequest->getShippingMethod(), |
| 105 |
|
1, |
| 106 |
|
$this->paymentRequest->getShippingFee() |
| 107 |
|
); |
| 108 |
|
$orderLinePayload->setGoodsType(OrderLinePayload::GOODS_TYPE_SHIPMENT); |
| 109 |
|
$paymentRequestPayload->addOrderLine($orderLinePayload); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
$customerInfoPayload = new CustomerInfoPayload(); |
| 113 |
|
$customerNames = explode(' ', $this->paymentRequest->getCustomerName(), 2); |