Skip to content

Commit

Permalink
Improve env variable check
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Metring <ricardometring@gmail.com>
  • Loading branch information
rafaelzaleski and ricardo authored Feb 27, 2025
1 parent aa3d9de commit 99fa8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-stripe-webhook-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function validate_request( $request_headers, $request_body ) {

// Skip validation for E2E tests in test mode.
if (
( false !== getenv( 'E2E_TESTING' ) && strtolower( getenv( 'E2E_TESTING' ) ) === 'true' )
filter_var( getenv( 'E2E_TESTING' ), FILTER_VALIDATE_BOOLEAN )
&& WC_Stripe_Mode::is_test()
) {
return WC_Stripe_Webhook_State::VALIDATION_SUCCEEDED;
Expand Down

0 comments on commit 99fa8eb

Please sign in to comment.