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: Remove Logger. By default no sensitive data should be logged. You should use your favorite logger if you want.
Date: 11 months ago
Size: 533 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"
   
)
  );
} catch (
Exception $e) {
  echo
$e->getMessage();
}
?>