Login   Register  
PHP Classes
elePHPant
Icontem

File: test/integration.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/integration.php  >  Download  
File: test/integration.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: 3 years ago
Size: 549 bytes
 

Contents

Class file image Download
<?php
require_once('../lib/merchant.php');

try {
  
$options = array(
      
'amount' => '50.00',
      
'currency' => 'EUR',
      
'service' => 'Eurobank'
      
);
  
$intergration Merchant_Billing_Integration::payment_service_for('1000''test@test.com'$options);


  
$intergration->billing_address(array('country'=>'Greece'))
                ->
currency('EUR')
                ->
customer(array('first_name' => 'John','last_name' => 'Doe'));

  
Merchant_Logger::print_ar($intergration);
} catch (
Exception $exc) {
  echo 
$exc->getMessage();
}

?>