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

Class: Payment_PagamentoCerto_Transaction

Source Location: /Payment_PagamentoCerto-0.2.3/Payment/PagamentoCerto/Transaction.php

Class Overview


Class representing a payment transaction


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 23]
Class representing a payment transaction


[ Top ]


Class Variables

$buyerInfo = array()

[line 63]

Array contaning buyer information
  • Access: protected

Type:   mixed


[ Top ]

$buyerType =

[line 68]

Buyer type
  • Access: protected

Type:   mixed


[ Top ]

$id =

[line 43]

Transaction ID
  • Access: protected

Type:   mixed


[ Top ]

$orderId =

[line 78]

Order id
  • Access: protected

Type:   mixed


[ Top ]

$paymentType =

[line 73]

Payment type
  • Access: protected

Type:   mixed


[ Top ]

$status =

[line 53]

Transaction status code
  • Access: protected

Type:   mixed


[ Top ]

$statusMessage =

[line 58]

Status message of the transaction
  • Access: protected

Type:   mixed


[ Top ]

$timestamp =

[line 48]

UNIX timestamp representing the transaction date
  • Access: protected

Type:   mixed


[ Top ]

$totalAmount =

[line 83]

Total amount of the order
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 92]

void __construct( $info)

Class constructor
  • Access: public

Parameters:

SimpleXMLElement   $info     Transaction information

[ Top ]

getBuyerInfo   [line 189]

array getBuyerInfo( )

Returns buyer information
  • Access: public

[ Top ]

getBuyerType   [line 199]

int getBuyerType( )

Returns the buyer type
  • Access: public

[ Top ]

getDate   [line 221]

string getDate( [string $format = 'd/m/Y H:i:s'])

Returns the date of the transaction in the specified format
  • Access: public

Parameters:

string   $format     Date format (http://www.php.net/date)

[ Top ]

getOrderId   [line 179]

int getOrderId( )

Returns the order id
  • Access: public

[ Top ]

getPaymentType   [line 209]

int getPaymentType( )

Returns the payment type
  • Access: public

[ Top ]

getStatusCode   [line 241]

int getStatusCode( )

Returns the status code of the transaction
  • Access: public

[ Top ]

getStatusMessage   [line 251]

string getStatusMessage( )

Returns the status message of the transaction
  • Access: public

[ Top ]

getTotalAmount   [line 231]

int|float getTotalAmount( )

Returns the total amount of the order
  • Access: public

[ Top ]

getTransactionId   [line 169]

string getTransactionId( )

Returns the transaction ID
  • Access: public

[ Top ]


Documentation generated on Thu, 04 Mar 2010 23:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.