To ICEPAY Homepage »
Developer Network

Class references

ICEPAY_Wallie Class

The class ICEPAY_Wallie is used to initiate Wallie payments.

Methods

ICEPAY_Wallie.Pay ( string language , string currency , string amount , string description )

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:

EN
English
NL
Dutch
FR
French
ES
Spanish
LV
Latvian
RU
Russian
Currency Specifies the currency of the payment.
Supported currencies:
CLP
Chilean Peso
EUR
Euro
GBP
Pound sterling
LVL
Latvian Lats
MXN
Mexican Peso
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.

Example

In the examples below, we will be initiating a Wallie payment of € 1.99 and redirecting the end-user to the Wallie payment screen.

PHP

    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 );
        

C#

    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);
        

VB.NET

    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);