return success when credit card has been approved

This commit is contained in:
David Remer 2020-07-16 09:56:53 +03:00
parent cb1494f103
commit f9dac40c47

View file

@ -72,6 +72,8 @@ class ApproveOrderEndpoint implements EndpointInterface
)
);
}
$this->sessionHandler->replaceOrder($order);
wp_send_json_success($order);
}
if (! $order->status()->is(OrderStatus::APPROVED)) {