Fix paypal phone mask (whitespace) Closes #3328.

This commit is contained in:
Mike Jolley 2013-07-19 07:00:38 +01:00
parent 0ef33da03c
commit 2c8e598371
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
$this->log->add( 'paypal', 'Generating payment form for order ' . $order->get_order_number() . '. Notify URL: ' . $this->notify_url );
if ( in_array( $order->billing_country, array( 'US','CA' ) ) ) {
$order->billing_phone = str_replace( array( '( ', '-', ' ', ' )', '.' ), '', $order->billing_phone );
$order->billing_phone = str_replace( array( '(', '-', ' ', ')', '.' ), '', $order->billing_phone );
$phone_args = array(
'night_phone_a' => substr( $order->billing_phone, 0, 3 ),
'night_phone_b' => substr( $order->billing_phone, 3, 3 ),