@@ 111-124 (lines=14) @@ | ||
108 | /** |
|
109 | * {@inheritdoc} |
|
110 | */ |
|
111 | public function getOrderStatus($order_id) |
|
112 | { |
|
113 | // Get order status. |
|
114 | // this is GET request so no need to create request object. |
|
115 | $resource = new GetOrderStatus( |
|
116 | $this->app, |
|
117 | $this->getSubscriptionKey(), |
|
118 | $this->getMerchantSerialNumber(), |
|
119 | $order_id |
|
120 | ); |
|
121 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetOrderStatus $response */ |
|
122 | $response = $resource->call(); |
|
123 | return $response; |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * {@inheritdoc} |
|
@@ 129-142 (lines=14) @@ | ||
126 | /** |
|
127 | * {@inheritdoc} |
|
128 | */ |
|
129 | public function getPaymentDetails($order_id) |
|
130 | { |
|
131 | // Get payment details. |
|
132 | // this is GET request so no need to create request object. |
|
133 | $resource = new GetPaymentDetails( |
|
134 | $this->app, |
|
135 | $this->getSubscriptionKey(), |
|
136 | $this->getMerchantSerialNumber(), |
|
137 | $order_id |
|
138 | ); |
|
139 | /** @var \zaporylie\Vipps\Model\Payment\ResponseGetPaymentDetails $response */ |
|
140 | $response = $resource->call(); |
|
141 | return $response; |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * {@inheritdoc} |