mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
prevent shipping address change in paypal checkout
This commit is contained in:
parent
9dc95c0e28
commit
d0a4405d7e
2 changed files with 14 additions and 6 deletions
|
@ -162,11 +162,14 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
}
|
||||
|
||||
$this->set_bn_code( $data );
|
||||
$order = $this->api_endpoint->create(
|
||||
$shipping_address_is_fix = 'checkout' === $data['context'] ? true : false;
|
||||
$order = $this->api_endpoint->create(
|
||||
$purchase_units,
|
||||
$this->payer( $data, $wc_order ),
|
||||
null,
|
||||
$this->payment_method()
|
||||
$this->payment_method(),
|
||||
'',
|
||||
$shipping_address_is_fix
|
||||
);
|
||||
if ( 'checkout' === $data['context'] ) {
|
||||
$this->validate_checkout_form( $data['form'], $order );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue