To ICEPAY Homepage »
Developer Network

Class references

ICEPAY_DDebit Class

The ICEPAY_DDEBIT class is used to initiate direct debit payments.

Methods

ICEPAY_DDebit.Pay ( string country , string language , string currency , string amount , string description )

Calling the Pay method will return you a URL to the direct debit payment screen. You can use this URL to automatically redirect the end-user to the payment screen.

Argument Description
Country Specifies the country of the direct debit.
Currently, only NL (The Netherlands) is supported.
Language Specifies the payment screen language.
The following languages are supported:
EN
English
NL
Dutch
Currency Specifies the currency of the payment.
Currently, only EUR (Euro) is supported.
Amount Specifies the amount (in cents) of the payment.
Description Specifies the description of the payment.

Example

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

PHP

    require_once( "icepay.php" );
    $dd = new ICEPAY_DDebit( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
    $url = $dd->Pay( "NL", "NL", "EUR", 3000, "30 EUR direct debit" );
    header( "location: " . $url );
        

C#

    ICEPAY.ICEPAY_DDebit dd = new ICEPAY.ICEPAY_DDebit(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
    string url = dd.Pay("NL", "NL", "EUR", 3000, "30 EUR direct debit");
    Response.Redirect(url);
        

VB.NET

    Dim dd as new ICEPAY.ICEPAY_DDebit(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ")
    Dim url as string = dd.Pay("NL", "NL", "EUR", 3000, "30 EUR direct debit")
    Response.Redirect(url)