Login   Register  
PHP Classes
elePHPant
Icontem

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

Contents

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

Merchant_Billing_Base::mode('test');
$gateway = new Merchant_Billing_Bogus();

$cc = new Merchant_Billing_CreditCard( array(
    
"first_name" => "Test",
    
"last_name" => "User",
    
"number" => "1",
    
"month" => "7",
    
"year" => "2010",
    
"verification_value" => "000"
  
)
);

try {
  
$response $gateway->authorize(100$cc); 
  echo 
$response->message();
} catch (
Exception $e) {
  echo 
$e->getMessage();
}

?>