mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'trunk' into PCP-305-enable-save-card-for-guest-users
This commit is contained in:
commit
78fe636e65
8 changed files with 20 additions and 35 deletions
|
@ -284,7 +284,7 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
* @throws RuntimeException If create order request fails.
|
||||
*/
|
||||
private function create_paypal_order( \WC_Order $wc_order = null ): Order {
|
||||
$needs_shipping = WC()->cart && WC()->cart->needs_shipping();
|
||||
$needs_shipping = WC()->cart instanceof \WC_Cart && WC()->cart->needs_shipping();
|
||||
$shipping_address_is_fix = $needs_shipping && 'checkout' === $this->parsed_request_data['context'];
|
||||
|
||||
return $this->api_endpoint->create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue