|
|
@@ -151,12 +151,8 @@ class Afterpay extends Payment
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function captureAndVerify($orderId, $transactionId)
|
|
|
+ public function captureAndVerify($order, $transactionId)
|
|
|
{
|
|
|
- $order = app(OrderRepository::class)->find($orderId);
|
|
|
- if (!$order->id) {
|
|
|
- return new \Exception('order is empty');
|
|
|
- }
|
|
|
if ($order->status != Order::STATUS_PENDING) {
|
|
|
return new \Exception('order status is error');
|
|
|
}
|