<?php if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { die('Not valid request'); } require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; $obj_sage = new SagePayGateway(); $Amount = isset($_SESSION['SAGEPAY_DATA']['amount']) ? $_SESSION['SAGEPAY_DATA']['amount'] : ''; $data = $obj_sage->sagepay_form(); ?> <h3>Enter Credit Card Payment Information:</h3> <form method="post" action="#" ENCTYPE="multipart/form-data" id="frm-sage-pay" > <table width=518 border="0" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF"> <tr bgcolor="#E5E5E5"> <td height="22" colspan="3" align="left" valign="middle"><strong> Billing Information (required)</strong></td> </tr> <tr> <td height="22" width="180" align="right" valign="middle">First Name:</td> <td colspan="2" align="left"><input name="BillingFirstnames" type="text" value="<?php echo isset($data['BillingFirstnames']) ? $data['BillingFirstnames'] : ''; ?> " size="50"></td> </tr> <tr> <td height="22" align="right" valign="middle">Last Name:</td> <td colspan="2" align="left"><input name="BillingSurname" type="text" value="<?php echo isset($data['BillingSurname']) ? $data['BillingSurname'] : ''; ?> " size="50"></td>
<?php require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; $obj_sage = new SagePayGateway(); if (isset($_SESSION['transaction']['VPSTxId'])) { $obj_sage->process_completed(); } else { $obj_sage->process_incompleted(); }
<?php require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; $obj_sage = new SagePayGateway(); echo $obj_sage->process_3d_callback(); exit;
<?php require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; $obj_sage = new SagePayGateway(); echo $obj_sage->process_3d_secure_verification();
<?php require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; $data['MD'] = $_POST['MD']; $data['PaRes'] = $_POST['PARes']; $secure = new SecureAuth($data); $obj_sage = new SagePayGateway(); if ($secure->status == 'success') { $obj_sage->process_completed(); } else { $obj_sage->process_incompleted($secure->error); }
<?php if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { die('Not valid request'); } require_once '../../../wp-load.php'; require_once '../../../wp-config.php'; require_once 'Validator.php'; $obj_sage = new SagePayGateway(); $obj_sage->process_sagepay();