Added debug logging for Stripe Checkout
This commit is contained in:
parent
8471d36817
commit
05ca04ace7
1 changed files with 2 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ function quiztech_handle_credit_purchase_submission() {
|
||||||
'purchase_status' => 'error',
|
'purchase_status' => 'error',
|
||||||
'message' => urlencode( __( 'Security check failed. Please try again.', 'quiztech' ) )
|
'message' => urlencode( __( 'Security check failed. Please try again.', 'quiztech' ) )
|
||||||
), $manage_credits_url ); // Use the stored URL
|
), $manage_credits_url ); // Use the stored URL
|
||||||
|
error_log("Stripe - Security check failed. Please try again");
|
||||||
wp_safe_redirect( $redirect_url );
|
wp_safe_redirect( $redirect_url );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
@ -230,6 +231,7 @@ function quiztech_handle_credit_purchase_submission() {
|
||||||
'purchase_status' => 'error',
|
'purchase_status' => 'error',
|
||||||
'message' => urlencode( __( 'You do not have permission to purchase credits.', 'quiztech' ) )
|
'message' => urlencode( __( 'You do not have permission to purchase credits.', 'quiztech' ) )
|
||||||
), $manage_credits_url );
|
), $manage_credits_url );
|
||||||
|
error_log("Stripe - You do not have permission to purchase credits");
|
||||||
wp_safe_redirect( $redirect_url );
|
wp_safe_redirect( $redirect_url );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue