mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
create PP order after checkout validation
This commit is contained in:
parent
e0d59ce2a0
commit
9d4ce86c37
1 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,8 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
public function after_checkout_validation( array $data, \WP_Error $errors ): array {
|
||||
if ( ! $errors->errors ) {
|
||||
|
||||
$order = $this->create_paypal_order();
|
||||
|
||||
/**
|
||||
* In case we are onboarded and everything is fine with the \WC_Order
|
||||
* we want this order to be created. We will intercept it and leave it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue