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

Class: Payment_Process

Source Location: /Payment_Process-0.5.7/Process.php

Class Overview

PEAR
   |
   --Payment_Process

Payment_Process


Author(s):

Version:

  • @version@

Variables

Methods


Child classes:

Payment_Process_Common
Payment_Process
Payment_Process_offline
Payment_Process_offline

Inherited Variables

Inherited Methods


Class Details

[line 74]
Payment_Process


[ Top ]


Class Variables

$action =  ''

[line 99]

Processing action.

This should be set to one of the PAYMENT_PROCESS_ACTION_* constants.


Type:   mixed


[ Top ]

$amount =  0

[line 110]

The transaction amount.

Type:   mixed


[ Top ]

$customerId =  ''

[line 120]

Customer identifier

Type:   mixed


[ Top ]

$description =  ''

[line 105]

A description of the transaction (used by some processors to send information to the client, normally not a required field).

Type:   mixed


[ Top ]

$invoiceNumber =  ''

[line 115]

An invoice number.

Type:   mixed


[ Top ]

$login =  ''

[line 87]

Your login name to use for authentication to the online processor.

Type:   mixed


[ Top ]

$password =  ''

[line 92]

Your password to use for authentication to the online processor.

Type:   mixed


[ Top ]

$transactionSource =

[line 127]

Transaction source.

This should be set to one of the PAYMENT_PROCESS_SOURCE_* constants.


Type:   mixed


[ Top ]



Method Detail

factory   [line 162]

mixed &factory( string $type, [array $options = false])

Return an instance of a specific processor.
  • Return: Instance of the processor object, or a PEAR_Error object.

Parameters:

string   $type   —  Name of the processor
array   $options   —  Options for the processor

[ Top ]

fieldExists   [line 262]

boolean fieldExists( string $field)

Determines if a field exists.
  • Return: true if field exists, false otherwise
  • Author: Ian Eure <ieure@php.net>

Parameters:

string   $field   —  Field to check

[ Top ]

getFields   [line 277]

array getFields( )

Get a list of fields.

This function returns an array containing all the possible fields which may be set.

  • Return: Array of valid fields.
  • Author: Ian Eure <ieure@php.net>
  • Access: public

[ Top ]

getOption   [line 309]

mixed getOption( string $option)

Get an option value.

Parameters:

string   $option   —  Option to get

[ Top ]

isError   [line 376]

void isError( mixed $obj)

Statically check a Payment_Result class for error

Parameters:

mixed   $obj   — 

[ Top ]

isRequired   [line 250]

boolean isRequired( string $field)

Determine if a field is required.
  • Return: true if required, false if optional.

Parameters:

string   $field   —  Field to check

[ Top ]

isSuccess   [line 358]

void isSuccess( mixed $obj)

Statically check a Payment_Result class for success

Parameters:

mixed   $obj   — 

[ Top ]

set   [line 205]

void set( string $field, string $value)

Set a value.

This will set a value, such as the credit card number. If the requested field is not part of the basic set of supported fields, it is set in $_options.


Parameters:

string   $field   —  The field to set
string   $value   —  The value to set

[ Top ]

setFrom   [line 185]

void setFrom( array $where)

Set many fields.

Parameters:

array   $where   —  Associative array of data to set, in the format 'field' => 'value',

[ Top ]

setOption   [line 322]

void setOption( string $option, mixed $value)

Set an option value

Parameters:

string   $option   —  Option name to set
mixed   $value   —  Value to set

[ Top ]

setOptions   [line 296]

void setOptions( [Array $options = false], [Array $defaultOptions = false])

Set class options.

Parameters:

Array   $options   —  Options to set
Array   $defaultOptions   —  Default options

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:51:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.