More Stripe Troubleshooting

This commit is contained in:
Ruben Ramirez 2025-04-04 02:54:39 -05:00
parent 9c8d592295
commit 84bf673037

View file

@ -1,3 +1,5 @@
log_to_file("Stripe - Passed is_admin check.");
<?php
/**
@ -236,15 +238,15 @@ function quiztech_handle_credit_purchase_submission() {
// Only process if our action is set and we are on the frontend
if ( ! isset( $_POST['quiztech_action'] ) ) {
log_to_file("Stripe - quiztech_action unset");
return;
// return;
}
if ($_POST['quiztech_action'] !== 'initiate_credit_purchase') {
log_to_file("Stripe - invalid action");
return;
// return;
}
if (is_admin()) {
log_to_file("Stripe - is_admin");
return;
// return;
}
// Get the Manage Credits page URL reliably