* @copyright Copyright (c) 2021 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ if (!empty($_GET['revert'])) { // processing a void or credit (will go to process_revert_response.php) $cancel = ''; $front = $_GET['front']; $csrf = $_GET['csrf_token']; $transaction = $_GET; $transaction['querystring'] = $_SERVER['QUERY_STRING']; $revert = 1; } elseif (!empty($_GET['cancel']) && ($_GET['cancel'] == 'cancel')) { // user cancelled the payment (will go to process_response.php) $cancel = 'cancel'; $front = $_GET['front']; $patientIdCc = $_GET['patient_id_cc']; $csrf = $_GET['csrf_token']; $transaction['ticket'] = $_GET['ticket']; $revert = 0; } elseif (!empty($_GET['transaction'])) { // user submitted the payment (will go to process_response.php) $cancel = ''; $transaction = $_GET['transaction']; $customFields = json_decode($transaction['transactioncustomfield'], true); $front = $customFields[1]; $patientIdCc = $customFields[2]; $csrf = $customFields[3]; unset($transaction['transactioncustomfield']); $revert = 0; } else { exit; } ?>
$b) { echo ''; } ?>