More Stripe Troubleshooting
This commit is contained in:
parent
9c8d592295
commit
84bf673037
1 changed files with 5 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
log_to_file("Stripe - Passed is_admin check.");
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -236,15 +238,15 @@ function quiztech_handle_credit_purchase_submission() {
|
||||||
// Only process if our action is set and we are on the frontend
|
// Only process if our action is set and we are on the frontend
|
||||||
if ( ! isset( $_POST['quiztech_action'] ) ) {
|
if ( ! isset( $_POST['quiztech_action'] ) ) {
|
||||||
log_to_file("Stripe - quiztech_action unset");
|
log_to_file("Stripe - quiztech_action unset");
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
if ($_POST['quiztech_action'] !== 'initiate_credit_purchase') {
|
if ($_POST['quiztech_action'] !== 'initiate_credit_purchase') {
|
||||||
log_to_file("Stripe - invalid action");
|
log_to_file("Stripe - invalid action");
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
if (is_admin()) {
|
if (is_admin()) {
|
||||||
log_to_file("Stripe - is_admin");
|
log_to_file("Stripe - is_admin");
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the Manage Credits page URL reliably
|
// Get the Manage Credits page URL reliably
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue