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

Class: Payment_Process2_PayPal

Source Location: /Payment_Process2-0.3.1/Payment/Process2/PayPal.php

Class Overview

Payment_Process2_Common
   |
   --Payment_Process2_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 66]
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 106]

$_typeFieldMap
  • Access: protected

Type:   mixed
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 143]

void __construct( [array $options = array()], [HTTP_Request2 $request = null])

Constructor.
  • See: Payment_Process::setOptions()

Overrides Payment_Process2_Common::__construct() (__construct)

Parameters:

array   $options   —  Class options to set.
HTTP_Request2   $request   — 

[ Top ]

getStatus   [line 251]

string getStatus( )

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

[ Top ]

prepareRequestData   [line 256]

void prepareRequestData( )


[ Top ]

process   [line 159]

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_Process2_Result on success, PEAR_Error on failure
  • Access: public

[ Top ]

processCallback   [line 240]

Payment_Process2_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???

[ Top ]

translateAction   [line 262]

void translateAction( $action)

  • Access: public

Parameters:

   $action   — 

[ Top ]

_handleAction   [line 208]

void _handleAction( )

Handles action

Actions are defined in translateAction and then handled here.

  • Access: protected

[ Top ]


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