Class references
The class ICEPAY_Wallie is used to initiate Wallie payments.
Calling the Pay method will return you a URL to the Wallie payment screen. You can use this URL to automatically redirect the end-user to the payment screen.
| Argument | Description |
|---|---|
| Language |
Specifies the payment screen language. Supported languages:
|
| Currency |
Specifies the currency of the payment. Supported currencies:
|
| Amount |
Specifies the amount (in cents) of the payment. The minimum amount is 30 cents, the maximum amount is 1000000 cents. |
| Description | Specifies the description of the payment. |
In the examples below, we will be initiating a Wallie payment of € 1.99 and redirecting the end-user to the Wallie payment screen.
require_once( "icepay.php" );
$wallie = new ICEPAY_Wallie( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $wallie->Pay( "EN", "EUR", 199, "Wallie payment of 1.99 EUR" );
header( "location: " . $url );
ICEPAY.ICEPAY_Wallie w = new ICEPAY.ICEPAY_Wallie( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
string url = w.Pay("EN", "EUR", 199, "Wallie payment of 1.99 EUR");
Response.Redirect(url);
Dim w as new ICEPAY.ICEPAY_Wallie(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
Dim url as string = w.Pay("EN", "EUR", 199, "Wallie payment of 1.99 EUR");
Response.Redirect(url);