Base class for gateway payments

Class Methods

The following methods can be invoked on instances of this class.

getGatewayTitle()

Returns the name of the payment gateway provider

getGatewayURL()

Returns the URL of the payment gateway provider

getConfigurationForm()

Returns the gateway custom config form (if it has one)

getRequiresRemotePostIframe()

Returns whether or not to use an iframe for posting

getPaymentForm(mixed strButtonValue)

getRecurringBillingForm(mixed strButtonValue)

getCreditCardType(string strCreditCardNumber)

Determines the type of the credit card used

getCustomerAddressFull(mixed arrTransaction, mixed bAddress, mixed bSuburb, mixed bPostcode, mixed bCountry)

Returns the full customer address, including suburb, postcode and country

charge(mixed arrTransaction, mixed arrReceipt)

Processes the transaction, charging the credit card
This function must also write to $arrReceipt the following values receipt_authcode => An authorisation code for the payment receipt_data => Data returned from the gateway about this payment

refundIsSupported()

Returns if refunding transations is supported by the payment gateway

recurringBillingIsSupported()

Determines if recurring billing is supported by the payment gateway

recurringBillingGet(array arrEntity)

Retrieves the details of a recurring billing account

recurringBillingSave(array arrEntity)

Saves the details of a recurring billing account

recurringBillingCharge(array arrTransaction, mixed arrReceipt)

Charges a recurring billing account

renderReceiptData(array arrReceipt)

Renders the receipt data

validateLUHN(mixed strCardNumber)

Validates a number according to Luhn check algorithm
This function checks given number according Luhn check algorithm.

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class