| @@ 132-145 (lines=14) @@ | ||
| 129 | /** |
|
| 130 | * {@inheritdoc} |
|
| 131 | */ |
|
| 132 | public function getOrderStatus($order_id) |
|
| 133 | { |
|
| 134 | // Get order status. |
|
| 135 | // this is GET request so no need to create request object. |
|
| 136 | $resource = new GetOrderStatus( |
|
| 137 | $this->app, |
|
| 138 | $this->getSubscriptionKey(), |
|
| 139 | $order_id |
|
| 140 | ); |
|
| 141 | $resource->setPath(str_replace('ecomm', $this->customPath, $resource->getPath())); |
|
| 142 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetOrderStatus $response */ |
|
| 143 | $response = $resource->call(); |
|
| 144 | return $response; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| @@ 150-163 (lines=14) @@ | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| 149 | */ |
|
| 150 | public function getPaymentDetails($order_id) |
|
| 151 | { |
|
| 152 | // Get payment details. |
|
| 153 | // this is GET request so no need to create request object. |
|
| 154 | $resource = new GetPaymentDetails( |
|
| 155 | $this->app, |
|
| 156 | $this->getSubscriptionKey(), |
|
| 157 | $order_id |
|
| 158 | ); |
|
| 159 | $resource->setPath(str_replace('ecomm', $this->customPath, $resource->getPath())); |
|
| 160 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetPaymentDetails $response */ |
|
| 161 | $response = $resource->call(); |
|
| 162 | return $response; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * {@inheritdoc} |
|