/**
     * Define the easypay access parameters
     * Please replace this parameters with your own
     * This parameters can also be defined in the easypay api configuration file
     * in api/Easypay-config.php
     * @var array
     */
    $easypay_params['user'] = '';
    $easypay_params['entity'] = $_GET['e'];
    //Uncomment if you need to validate by code code
    //$ep_conf['code'] = '';
    /**
     * Create a new Easypay Object
     * @var Easypay
     */
    $easypay = new Easypay($easypay_params);
    //set mode to either test or production.
    //This can be defined in the config file
    $easypay->set_live(false);
    /**
     * Requesting Payment
     * @var array
     */
    $payment = $easypay->requestPayment($_GET['r'], $_GET['k']);
}
?>
<!doctype html>
<html>
    <head>
        <title>Easypay Reference Creation Test</title>
    </head>
 * @copyright	Easypay
 * @license	GPL v2
 */
require_once './api/Easypay.php';
/**
 * Define the easypay access parameters, 
 * this parameters should not be modified
 * @var array
 */
$easypay_params['user'] = $_GET['ep_user'];
$easypay_params['cin'] = $_GET['ep_cin'];
/**
 * Create a new Easypay Object
 * @var Easypay
 */
$easypay = new Easypay($easypay_params);
//set mode to either test or production.
//This can be defined in the config file
$easypay->set_live(false);
//connecting to database
/**
 * Connect to Database,
 * you may use your own connection system, this one is just for example purposes
 * you may also want to change your database credentials
 */
$mysqli = new mysqli("localhost", "root", "123", "easypay_test");
if ($mysqli->connect_errno) {
    printf("Connection failed: %s\n", $mysqli->connect_error);
    exit;
}
/**
     * Define the easypay access parameters
     * Please replace this parameters with your own
     * This parameters can also be defined in the easypay api configuration file
     * in api/Easypay-config.php
     * @var array
     */
    $easypay_params['user'] = '';
    $easypay_params['cin'] = '';
    $easypay_params['entity'] = $_GET['e'];
    //Uncomment if you need to validate by code code
    //$ep_conf['code'] = '';
    /**
     * Create a new Easypay Object
     * @var Easypay
     */
    $easypay = new Easypay($easypay_params);
    //set mode to either test or production.
    //This can be defined in the config file
    $easypay->set_live(false);
    $verification = $easypay->getTransactionVerification($_GET['r']);
    echo '<pre>';
    var_dump($verification);
    echo '</pre>';
}
?>
<!doctype html>
<html>
    <head>
        <title>Easypay Reference Creation Test</title>
    </head>
    <body>
$easypay_params['cin'] = '3016';
$easypay_params['entity'] = '10611';
$easypay_params['name'] = '';
$easypay_params['description'] = '';
$easypay_params['observation'] = '';
$easypay_params['mobile'] = '';
$easypay_params['email'] = '';
$easypay_params['value'] = '10.01';
$easypay_params['key'] = '007';
//Uncomment if you need to validate by code code
//$easypay_params['code'] = '';
/**
 * Create a new Easypay Object
 * @var Easypay
 */
$easypay = new Easypay($easypay_params);
//set mode to either test or production.
//This can be defined in the config file
$easypay->set_live(false);
$reference = $easypay->createReference();
?>
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Easypay Reference Creation Test</title>
    </head>
    <body>
        <div runat="server" id="ep_box" style="float: left; text-align:center; border: 1px solid #ddd; border-radius: 5px; width: 210px; min-height: 70px; padding:10px;" >
            <img src="http://store.easyp.eu/img/easypay_logo_nobrands-01.png" style="height:40px; margin-bottom: 10px;" title="Se quer pagar uma referência multibanco utilize a easypay" alt="Se quer pagar uma referência multibanco utilize a easypay" />
            <div style="width: 190px; float: left; padding: 10px; border: 1px solid #ccc; border-radius: 5px; background-color:#eee;">