We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24613a8 + e4785b7 commit 2eba745Copy full SHA for 2eba745
1 file changed
unitpay/unitpay.php
@@ -2,7 +2,7 @@
2
/*
3
Plugin Name: Unitpay
4
Description: Unitpay Plugin for WooCommerce
5
- Version: 1.0.1
+ Version: 2.1.1
6
*/
7
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
@@ -130,7 +130,7 @@ public function generate_form($order_id){
130
}
131
132
if ($order->billing_phone) {
133
- $form .= '<input type="hidden" name="customerPhone" value="' . $order->billing_phone . '" />';
+ $form .= '<input type="hidden" name="customerPhone" value="' . preg_replace('/\D/', '', $order->billing_phone) . '" />';
134
135
136
$form .=
@@ -180,7 +180,6 @@ function callback(){
180
$status_sign = false;
181
182
183
-// $status_sign = true;
184
185
if ($status_sign){
186
switch ($method) {
0 commit comments