More Stripe Troubleshooting
This commit is contained in:
parent
2c748c2dce
commit
545bed1690
1 changed files with 2 additions and 2 deletions
|
|
@ -111,9 +111,8 @@ class StripeGateway {
|
|||
error_log($log_message_redirect);
|
||||
}
|
||||
|
||||
wp_safe_redirect( $session->url );
|
||||
wp_redirect( $session->url ); // Use direct redirect
|
||||
|
||||
exit;
|
||||
// If execution reaches here, exit() failed or was bypassed.
|
||||
$log_message_critical = "Quiztech StripeGateway: CRITICAL - Execution continued after wp_safe_redirect and before exit().";
|
||||
if (function_exists('log_to_file')) {
|
||||
|
|
@ -121,6 +120,7 @@ class StripeGateway {
|
|||
} else {
|
||||
error_log($log_message_critical);
|
||||
}
|
||||
exit;
|
||||
} else {
|
||||
return new WP_Error( 'stripe_session_error', __( 'Could not create Stripe Checkout session.', 'quiztech' ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue