@@ -163,7 +163,7 @@ |
||
163 | 163 | && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
164 | 164 | } else { |
165 | 165 | return preg_match( '/^pk_live_/', $this->publishable_key ) |
166 | - && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
166 | + && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
167 | 167 | } |
168 | 168 | } |
169 | 169 |
@@ -123,10 +123,10 @@ |
||
123 | 123 | // in includes/abstracts/abstract-wc-stripe-payment-gateway.php |
124 | 124 | if ( $this->testmode ) { |
125 | 125 | return preg_match( '/^pk_test_/', $this->publishable_key ) |
126 | - && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
|
126 | + && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
|
127 | 127 | } else { |
128 | 128 | return preg_match( '/^pk_live_/', $this->publishable_key ) |
129 | - && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
129 | + && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 |