Ejemplo n.º 1
0
 /**
  *
  * @param array $options
  * Options
  * 'login'    - Your merchan id.         (REQUIRED)
  * 'password' - Your encrypted password. (REQUIRED)
  */
 public function __construct($options)
 {
     $this->required_options('login, password', $options);
     if (isset($options['currency'])) {
         self::$default_currency = $options['currency'];
     }
     $this->options = $options;
 }
Ejemplo n.º 2
0
<?php

require_once '../../lib/merchant.php';
require_once '../login.php';
Merchant_Billing_Base::mode('test');
try {
    $gateway = new Merchant_Billing_Eurobank(array('login' => EUROBANK_LOGIN, 'password' => EUROBANK_PASS));
    $cc = new Merchant_Billing_CreditCard(array("first_name" => "Test", "last_name" => "User", "number" => "41111111111111", "month" => "12", "year" => "2012", "verification_value" => "123"));
    Merchant_Logger::print_ar($gateway->authorize('1', $cc, array('customer_email' => '*****@*****.**')));
} catch (Exception $e) {
    echo $e->getMessage();
}