diff --git a/thawani-pay-woocommerce.php b/thawani-pay-woocommerce.php index 74382bb..2eb2522 100644 --- a/thawani-pay-woocommerce.php +++ b/thawani-pay-woocommerce.php @@ -215,6 +215,7 @@ public function process_payment( $order_id ) { } $billing_email = $order->get_billing_email(); + $billing_phone = $order->get_billing_phone(); $billing_email = preg_replace("/[+]/", "00", $billing_email); $fname = $order->get_billing_first_name(); $lname = $order->get_billing_last_name(); @@ -233,6 +234,7 @@ public function process_payment( $order_id ) { 'customer_id' => $user_id, 'order_id' => $order_id, 'customer_email' => $billing_email, + 'customer_phone' => $billing_phone ), );