We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44699a commit 8ccf2b5Copy full SHA for 8ccf2b5
includes/class-wc-stripe-api.php
@@ -245,7 +245,7 @@ public static function retrieve( $api ) {
245
// If we get a 401 error, we know the secret key is not valid.
246
if ( is_array( $response ) && isset( $response['response'] ) && is_array( $response['response'] ) && isset( $response['response']['code'] ) && 401 === $response['response']['code'] ) {
247
// Stripe redacts API keys in the response.
248
- WC_Stripe_Logger::log( "Error: GET {$api} returned a 401 " . print_r( $response, true ) );
+ WC_Stripe_Logger::log( "Error: GET {$api} returned a 401" );
249
250
return null; // The UI expects this empty response in case of invalid API keys.
251
}
0 commit comments