Skip to content

Commit

Permalink
Add billing_phone in request metadata
Browse files Browse the repository at this point in the history
Add billing_phone in request metadata because it's required by Thawani Team to be able to get approval to move to production environment.
  • Loading branch information
malnafei committed Mar 25, 2021
1 parent 65c61a1 commit 1a2986b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thawani-pay-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
),
);

Expand Down

0 comments on commit 1a2986b

Please sign in to comment.