From 699fa6f6e11e3846caf0f8760d6c4d722f49f721 Mon Sep 17 00:00:00 2001 From: Dominik Krebs Date: Fri, 13 Jan 2023 13:00:48 +0100 Subject: [PATCH] use mobilePhoneNumber instead of (empty) phoneNumber field --- .../includes/class-wc-gateway-ratenkaufbyeasycredit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/woocommerce-gateway-ratenkaufbyeasycredit/includes/class-wc-gateway-ratenkaufbyeasycredit.php b/src/woocommerce-gateway-ratenkaufbyeasycredit/includes/class-wc-gateway-ratenkaufbyeasycredit.php index 1b4ca87..f971e82 100644 --- a/src/woocommerce-gateway-ratenkaufbyeasycredit/includes/class-wc-gateway-ratenkaufbyeasycredit.php +++ b/src/woocommerce-gateway-ratenkaufbyeasycredit/includes/class-wc-gateway-ratenkaufbyeasycredit.php @@ -204,7 +204,7 @@ protected function create_express_checkout_order($transaction) { $updateAddress($transaction->getTransaction()->getOrderDetails()->getShippingAddress(), 'shipping'); $contact = $transaction->getTransaction()->getCustomer()->getContact(); - WC()->customer->set_billing_phone($contact->getPhoneNumber()); + WC()->customer->set_billing_phone($contact->getMobilePhoneNumber()); WC()->customer->set_billing_email($contact->getEmail()); WC()->customer->save();