mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
return success when credit card has been approved
This commit is contained in:
parent
cb1494f103
commit
f9dac40c47
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ class ApproveOrderEndpoint implements EndpointInterface
|
|||
)
|
||||
);
|
||||
}
|
||||
$this->sessionHandler->replaceOrder($order);
|
||||
wp_send_json_success($order);
|
||||
}
|
||||
|
||||
if (! $order->status()->is(OrderStatus::APPROVED)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue