Dummy
in package
Lets you choose successful, failed, and aborted payments.
This also demonstrates the requirements of the current specification for any external payment service provider class. See for details.
Tags
Table of Contents
Methods
- commit() : bool
- Commit the payment process result (dummy operation).
- getForm() : string
- Returns the dummy payment form
- getOrderId() : int
- Returns the Order ID
Methods
commit()
Commit the payment process result (dummy operation).
public
static commit() : bool
After the user submitted the payment form, a result according to her choices is created here. The result of the payment process SHOULD be provided in the 'result' request argument. It SHOULD be one of the following: 0 (zero): The payment was unsuccessful. 1 (one): The payment was successful. 2 (two): The payment has been cancelled. Values other than these are considered to be equal to 0.
Tags
Return values
bool —True on success, false otherwise
getForm()
Returns the dummy payment form
public
getForm() : string
Tags
Return values
string —HTML code for the dummy payment form
getOrderId()
Returns the Order ID
public
static getOrderId() : int
The order ID MUST be provided in the 'order_id' or 'orderid' request argument. Otherwise, the payment is assumed to have failed.
Tags
Return values
int —The Order ID, or false