Class references
The ICEPAY_DDEBIT class is used to initiate direct debit payments.
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:
|
| 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. |
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.
require_once( "icepay.php" );
$dd = new ICEPAY_DDebit( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $dd->Pay( "NL", "NL", "EUR", 3000, "30 EUR direct debit" );
header( "location: " . $url );
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);
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)