Payment_Process
[ class tree: Payment_Process ] [ index: Payment_Process ] [ all elements ]

Class: Payment_Process_PayPal

Source Location: /Payment_Process-0.6.8/Process/PayPal.php

Class Overview

Payment_Process_Common
   |
   --Payment_Process_PayPal

This is a processor for PayPal's merchant Direct Payment gateway.


Author(s):

Version:

  • @version@

Copyright:

  • 1997-2005 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 74]
This is a processor for PayPal's merchant Direct Payment gateway.


[ Top ]


Class Variables

$_typeFieldMap = array(

           'CreditCard' => array(
                'firstName'  => 'FIRSTNAME',
                'lastName'   => 'LASTNAME',
                'cardNumber' => 'ACCT',
                'cvv'        => 'CVV2',
                'type'       => 'CREDITCARDTYPE',
                'expDate'    => 'EXPDATE',
           ),)

[line 114]

$_typeFieldMap
  • Access: protected

Type:   mixed
Overrides:   Array


[ Top ]



Method Detail

Payment_Process_PayPal (Constructor)   [line 165]

Payment_Process_PayPal Payment_Process_PayPal( [ $options = false])


Parameters:

   $options   — 

[ Top ]

__construct (Constructor)   [line 158]

void __construct( [array $options = false])

Constructor.

Overrides Payment_Process_Common::__construct() (__construct)

Parameters:

array   $options   —  Class options to set.

[ Top ]

getStatus   [line 295]

string getStatus( )

Get (completed) transaction status.
  • Return: Two-digit status returned from gateway.

[ Top ]

process   [line 179]

mixed &process( )

Processes the transaction.

Success here doesn't mean the transaction was approved. It means the transaction was sent and processed without technical difficulties.

  • Return: Payment_Process_Result on success, PEAR_Error on failure
  • Access: public

Overrides Payment_Process_Common::process() (Processes the transaction.)
[ Top ]

processCallback   [line 284]

Payment_Process_Result &processCallback( )

Processes a callback from payment gateway

Success here doesn't mean the transaction was approved. It means the callback was received and processed without technical difficulties.

  • Return: instance on success, PEAR_Error on failure
  • Todo: Implement support for PayPal IPN???

Overrides Payment_Process_Common::processCallback() (processCallback)
[ Top ]

_handleAction   [line 252]

void _handleAction( )

Handles action

Actions are defined in $GLOBALS['_Payment_Process_PayPal'] and then handled here.

  • Access: protected

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.