Login   Register  
PHP Classes
elePHPant
Icontem

File: test/eurobank/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andreas Kollaros  >  Aktive Merchant  >  test/eurobank/index.php  >  Download  
File: test/eurobank/index.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Aktive Merchant
Common interface to process payments with gateways
Author: By
Last change:
Date: 2011-11-10 05:40
Size: 635 bytes
 

Contents

Class file image Download
<?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'=>'test@test.com')));
} catch (
Exception $e) {
  echo 
$e->getMessage();
}
?>