@@ 132-146 (lines=15) @@ | ||
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 | $this->getMerchantSerialNumber(), |
|
140 | $order_id |
|
141 | ); |
|
142 | $resource->setPath(str_replace('Ecomm', $this->customPath, $resource->getPath())); |
|
143 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetOrderStatus $response */ |
|
144 | $response = $resource->call(); |
|
145 | return $response; |
|
146 | } |
|
147 | ||
148 | /** |
|
149 | * {@inheritdoc} |
|
@@ 151-165 (lines=15) @@ | ||
148 | /** |
|
149 | * {@inheritdoc} |
|
150 | */ |
|
151 | public function getPaymentDetails($order_id) |
|
152 | { |
|
153 | // Get payment details. |
|
154 | // this is GET request so no need to create request object. |
|
155 | $resource = new GetPaymentDetails( |
|
156 | $this->app, |
|
157 | $this->getSubscriptionKey(), |
|
158 | $this->getMerchantSerialNumber(), |
|
159 | $order_id |
|
160 | ); |
|
161 | $resource->setPath(str_replace('Ecomm', $this->customPath, $resource->getPath())); |
|
162 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetPaymentDetails $response */ |
|
163 | $response = $resource->call(); |
|
164 | return $response; |
|
165 | } |
|
166 | ||
167 | /** |
|
168 | * {@inheritdoc} |