phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: cart auth_example.php,1.1,1.2 echo_example.php,1


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: cart auth_example.php,1.1,1.2 echo_example.php,1.1,1.2 pfp_example.php,1.1,1.2
Date: Wed, 20 Mar 2002 08:04:36 -0500

Update of /cvsroot/phpgroupware/cart
In directory subversions:/tmp/cvs-serv11920

Modified Files:
        auth_example.php echo_example.php pfp_example.php 
Log Message:
minor adjustments



Index: auth_example.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/auth_example.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** auth_example.php    20 Mar 2002 12:49:41 -0000      1.1
--- auth_example.php    20 Mar 2002 13:03:59 -0000      1.2
***************
*** 16,20 ****
        include('../header.inc.php');
  
!       $test = CreateObject('cart.payment_authorizenet');
        $test->transact();
        $test->authorize();
--- 16,21 ----
        include('../header.inc.php');
  
!       $GLOBALS['phpgw_info']['server']['cart_payment_type'] = 'authorizenet';
!       $test = CreateObject('cart.payment');
        $test->transact();
        $test->authorize();

Index: echo_example.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/echo_example.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** echo_example.php    20 Mar 2002 12:49:41 -0000      1.1
--- echo_example.php    20 Mar 2002 13:03:59 -0000      1.2
***************
*** 25,29 ****
        // vouch for PHP3.. but it should be fine.
  
!       $echoPHP = CreateObject('cart.payment_echo');
  
        
$echoPHP->set_EchoServer('https://wwws.echo-inc.com/scripts/INR300.EXE');
--- 25,29 ----
        // vouch for PHP3.. but it should be fine.
  
!       $echoPHP = CreateObject('cart.payment');
  
        
$echoPHP->set_EchoServer('https://wwws.echo-inc.com/scripts/INR300.EXE');

Index: pfp_example.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/pfp_example.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pfp_example.php     20 Mar 2002 12:49:41 -0000      1.1
--- pfp_example.php     20 Mar 2002 13:03:59 -0000      1.2
***************
*** 13,16 ****
--- 13,20 ----
    /* $Id$ */
  
+       $GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'cart');
+ 
+       include('../header.inc.php');
+ 
        /*
        I just pulled this page off the site I used the class on the first time.
***************
*** 21,27 ****
        // In the following call, the last parameter passed to the constructor
        // is to indicate to use the test server (0), or the live server (1)
!       $pfp = 
CreateObject('cart.payment_pfp',$verisign_login,$verisign_password,0);
        $pfp->CustomerDetails($name,$address,$city,$state,$zip,$phone,$email);
!       $result = $pfp->UseCreditCard($acct,$price,$month.$year,S);
  
        if(!$result)
--- 25,33 ----
        // In the following call, the last parameter passed to the constructor
        // is to indicate to use the test server (0), or the live server (1)
!       $GLOBALS['phpgw_info']['server']['cart_payment_type'] = 'pfp';
! 
!       $pfp = 
CreateObject('cart.payment',$verisign_login,$verisign_password,0);
        $pfp->CustomerDetails($name,$address,$city,$state,$zip,$phone,$email);
!       $result = $pfp->UseCreditCard($acct,$price,'0105','S');
  
        if(!$result)
***************
*** 45,47 ****
--- 51,55 ----
                // success code goes here
        }
+ 
+       $GLOBALS['phpgw']->common->phpgw_footer();
  ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]