| ICEPAY |
This is the base class for all ICEPAY subclasses.
If you need a payment selection screen, please use this class. |
Open › |
ICEPAY Class
The ICEPAY class is the base class for all other ICEPAY subclasses.
Remarks: You should only be using this class if you want end-users to be redirected to the ICEPAY payment selection screen where they will be able to choose from a list of payment methods.
Methods
ICEPAY.Constructor ( int merchantID , string secretCode )
You will need an API Key in order to call the constructor.
| Argument |
Description |
| Merchant ID |
This is part of your API Key |
| Secret code |
This is part of your API Key |
ICEPAY.SetOrderID ( string orderID )
Use this method to set the Order ID for a payment. The Order ID can be the ID of your internal database record.
You can later use this information in the Postback script to do transaction synchronization between ICEPAY and your database.
Remarks: the Order ID must be unique and its length may not be longer than 10 characters!
ICEPAY.SetReference ( string reference )
Use this method to set the reference for a payment. The reference is custom information that you want to add to a payment.
You can later use this information in the Postback script for your own purposes.
ICEPAY.SetLogging ( bool logging )
You can enable or disable logging. Enabling logging would provide you with debug logs which later can come in handy when you contact technical support. Logging is by default turned OFF.
ICEPAY.SetLoggingDirectory ( string loggingDirectory )
Set the logging directory path. Please make sure that your website has write access in the specified directory.
ICEPAY.SetStreamMethod ( string streamMethod )
Set the streaming method to acquire the payment URL. By default the streaming method is FOPEN. Checks will be made for method availability if the method is not set.
| Argument |
Description |
| FOPEN |
Requires the PHP FOPEN library to be installed and compiled. |
| cURL |
Requires the PHP cURL library (client URL) to be installed and compiled. |
| file_get_contents |
Requires the PHP file_get_contents library to be installed and compiled. |
ICEPAY.Pay ( string country , string language , string currency , int amount , string description )
Calling the Pay method will return you a URL to the ICEPAY payment selection screen. You can use this URL to automatically redirect the end-user to the payment selection screen. On the payment selection screen, the end-user can make a selection from a list of available payment methods. By setting the arguments such as country, language, etc. you will be able to influence the list of available payment methods. For instance, if you provide U.S. dollar (USD) as the currency, then the iDEAL payment method will disappear from the list, as this payment method does not support the U.S. dollar currency.
For a complete overview of all the supported parameters and currency's you can consult the following document: Supported Parameters
| Argument |
Description |
| Country |
Specifies the country. The following countries are supported:
- 00
- Country does not matter
- NL
- Netherlands
- AT
- Austria
- AU
- Australia
- BE
- Belgium
- CA
- Canada
- CH
- Switzerland
- CZ
- Czech Republic
- DE
- Germany
- ES
- Spain
- FR
- France
- IT
- Italy
- LU
- Luxembourg
- PL
- Poland
- PT
- Portugal
- SK
- Slovakia
- GB
- United Kingdom
- US
- United States
Remarks: payment methods that are not supported in the specified country will disappear from the payment selection screen |
| Language |
Specifies the language of the payment selection screen.
Payment methods that do not support the language will disappear from the list |
| Currency |
Specifies the currency of the payment. The following currencies are supported:
- GBP
- Pound sterling
- EUR
- Euro
- USD
- U.S. dolla
Remarks: payment methods that do not support the specified currency will disappear from the payment selection screen |
| Amount |
Specifies the amount (in cents) of the payment.
Payment methods that do not support the specified amount will disappear from the payment selection screen |
| Description |
Specifies the description of the payment |
ICEPAY.OnSuccess ()
Your Success URL should be calling this method to check if it is actually called by ICEPAY.
Returns True if the call is valid, otherwise False.
ICEPAY.OnError ()
Your Error URL should be calling this method to check if it is actually called by ICEPAY.
Returns True if the call is valid, otherwise False.
ICEPAY.GetData ()
Returns information for the Success URL or Error URL.
| Field |
Description |
| status |
Can be any of the following values: |
| statusCode |
A description of the status. |
| merchant |
This is the merchant ID that is part of your API Key. |
| orderID |
This is the order ID generated by ICEPAY. You can safely ignore this. |
| paymentID |
Please mention this value when you ever contact ICEPAY support regarding a payment. |
| reference |
This is the reference of the payment that you may have set using the SetReference method. |
| transactionID |
This is the transaction ID generated by the issuer. |
ICEPAY.OnPostback ()
Your Postback URL should be calling this method to check if it is actually called by ICEPAY.
Returns True if the call is valid, otherwise False.
ICEPAY.GetPostback ()
This method returns the Postback information posted by ICEPAY. The Postback information
contains valueble information regarding the payment.
In .NET, this information will be returned as a ICEPAY.ICEPAY.Postback Type.
In PHP, this information will be returned as an array.
| Field |
Description |
| status |
Contains the status of the payment. You can expect one of the following string values:
- OK
- Payment completed
- OPEN
- Payment not yet completed. Expect another postback in the near future.
- ERR
- Payment was cancelled, failed or expired.
- REFUND
- Payment was refunded by the merchant.
- CBACK
- Payment was charged back by the end-user.
|
| statusCode |
A description of the status. |
| merchant |
This is the merchant ID that is part of your API Key. |
| orderID |
This is the order ID generated by ICEPAY. You can safely ignore this. |
| paymentID |
This is the ICEPAY transaction ID.
Please mention this value when you ever contact ICEPAY support regarding a payment. |
| reference |
This is the reference of the payment that you may have set using the SetReference method. |
| transactionID |
This is the transaction ID generated by the issuer. |
| consumerName |
The name of the end-user.
This information is only available for iDEAL payments and wire transfers. |
| consumerAccountNumber |
The account number of the end-user. Only the last four digits is available.
This information is only available for wire transfers. |
| consumerAddress |
Address of the end-user. |
| consumerHouseNumber |
Address' house number of the end-user. |
| consumerCity |
City in which the end-user resides. |
| consumerCountry |
Country in which the end-user resides. |
| consumerEmail |
E-mail of the end-user. |
| consumerPhoneNumber |
Phone number of the end-user. |
| consumerIPAddress |
IP address of the end-user. |
| amount |
Amount that is paid by the end-user. |
| currency |
The money that a country uses : a specific kind of money. |
| duration |
The call duration in seconds.
This information is only available for phone payments. |
| paymentMethod |
Specifies which payment method was used for this payment, e.g. CREDITCARD, IDEAL, etc. |
|
| ICEPAY_CC |
For global credit card payments. |
Open › |
ICEPAY_CC Class
The ICEPAY_CC class allows you to initiate credit card payments.
Methods
ICEPAY_CC.Pay ( string issuer , string language , string currency , int amount , string description )
Calling the Pay method will return you a URL to the credit card payment screen. You can use this URL to automatically redirect the end-user.
| Argument |
Description |
| Issuer |
Specifies the issuer that should be handling the credit card payment.
The following issuers are supported:
- AMEX
- American Express
- MASTER
- MasterCard
- VISA
- Visa
|
| Language |
Specifies the language of the payment screen. The following languages are supported:
- DE
- German
- EN
- English
- NL
- Netherlands
|
| Currency |
Specifies the currency of the payment. The following currencies are supported:
- GBP
- Pound sterling
- EUR
- Euro
- USD
- U.S. dollar
|
| Amount |
Specifies the amount (in cents) of the payment. |
| Description |
Specifies the description of the payment. |
Examples
Below you will find an example of how to initiate a credit card payment. The issuer that will be handling the payment is American Express. The payment screen language is Dutch. The amount to be charged is GBP 4.00.
PHP
require_once( "icepay.php" );
$cc = new ICEPAY_CC( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $cc->Pay( "AMEX", "NL", "GBP", 400, "Example product worth 4 GBP" );
header( "location: " . $url );
C#
ICEPAY.ICEPAY_CC cc = new ICEPAY.ICEPAY_CC( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
string url = cc.Pay("AMEX", "NL", "GBP", 400, "Example product worth 4 GBP");
Response.Redirect(url);
VB.NET
Dim cc as new ICEPAY_CC(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ")
Dim url as string = cc.Pay("AMEX", "NL", "GBP", 400, "Example product worth 4 GBP")
Response.Redirect(url)
|
| ICEPAY_DDebit |
For Dutch direct debit payments. |
Open › |
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 € 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)
|
| ICEPAY_DirectEBank / sofortbanking |
For sofortbanking (Direct E-Banking) payments. |
Open › |
ICEPAY_DirectEBank Class
The ICEPAY_DirectEBank class allows you to initiate sofortbanking (Direct E-Banking) payments.
Methods
ICEPAY_DirectEBank.Pay ( string country, string language, string currency, int amount, int string description )
Calling the Pay method will return you a URL to the sofortbanking (Direct E-Banking) payment screen. You can use this URL to automatically redirect the end-user.
| Argument |
Description |
| Country |
Specifies the country of the end-user.
- AT
- Austria
- BE
- Belgium
- CH
- Switzerland
- DE
- Germany
- GB
- Great Britain
|
| Language |
Specifies the payment screen language.
- DE
- German
- EN
- English
- FR
- French
- NL
- Dutch
|
| Currency |
Specifies the currency of the payment. The following currencies are supported:
- GBP
- Pound sterling
- EUR
- Euro
|
| Amount |
Specifies the amount (in eurocents) of the payment.
The minimum amount is 30 eurocents. The maximum amount is 1000000 eurocents. |
| Description |
Specifies the description of the payment. |
|
| ICEPAY_GiroPAY |
For German GIROPAY payments. |
Open › |
ICEPAY_GiroPAY Class
The ICEPAY_GiroPAY class allows you to initiate GIROPAY payments.
Methods
ICEPAY_GiroPAY.Pay ( int amount, string description )
Calling the Pay method will return you a URL to the GIROPAY payment screen. You can use this URL to automatically redirect the end-user.
| Argument |
Description |
| Country |
Specifies the country of the end-user.
Currently, only DE (Germany) is supported. |
| Language |
Specifies the payment screen language.
Currently, only DE (German) is supported. |
| Currency |
Specifies the currency of the payment.
Currently, only EUR (Euro) is supported. |
| Amount |
Specifies the amount (in eurocents) of the payment.
The minimum amount is 30 eurocents. The maximum amount is 1000000 eurocents. |
| Description |
Specifies the description of the payment. |
|
| ICEPAY_iDEAL |
For Dutch iDEAL payments. |
Open › |
ICEPAY_iDEAL Class
The class ICEPAY_iDEAL allows you to easily initiate an iDEAL payment with just a few lines of code.
Remarks: iDEAL only supports the Euro currency and the Dutch language interface. Therefore, you cannot set these two parameters.
Methods
ICEPAY_iDEAL.Pay ( string issuer , int amount , string description )
Calling the Pay method will return you a URL to the iDEAL payment screen. You can use this URL to automatically redirect the end-user to the iDEAL payment screen.
| Argument |
Description |
| Issuer |
Specifies the bank that will be handling the iDEAL payment.
The following banks are supported:
- ABNAMRO
- ABN AMRO Bank
- ASNBANK
- ASN Bank
- FRIESLAND
- Friesland Bank
- ING
- ING Bank
- RABOBANK
- Rabobank
- SNSBANK
- SNS Bank
- SNSREGIOBANK
- SNS Regio Bank
- TRIODOSBANK
- Triodos Bank
- VANLANSCHOT
- Van Lanschot Bankiers
|
| Amount |
Specifies the amount (in eurocents) of the payment.
The minimum amount is 30 eurocents. The maximum amount is 1000000 eurocents. |
| Description |
Specifies the description of the payment. |
Example
Below you will find an example of how to initiate an iDEAL payment. The issuer that will be handling the payment is the ABN AMRO bank. The amount to be charged is € 5.
PHP
require_once( "icepay.php" );
$iDEAL = new ICEPAY_iDEAL( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $iDEAL->Pay("ABNAMRO", 500, "iDEAL payment of 5 EUR" );
header( "location: " . $url );
C#
ICEPAY.ICEPAY_iDEAL iDEAL = new ICEPAY_iDEAL(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
String url = iDEAL.Pay("ABNAMRO", 500, "iDEAL payment of 5 EUR");
Response.Redirect(url);
VB.NET
Dim iDEAL as New ICEPAY.ICEPAY_iDEAL(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ")
Dim url as String = iDEAL.Pay("ABNAMRO", 500, "iDEAL payment of 5 EUR")
Response.Redirect(url)
|
| ICEPAY_MisterCash |
For payments with MisterCash. |
Open › |
ICEPAY_MisterCash Class
The class ICEPAY_MisterCash is used to initiate MisterCash payments.
Methods
ICEPAY_MisterCash.Pay ( string country, string language , string amount , string description )
Calling the Pay method will return you a URL to the MisterCash payment screen. You can use this URL to automatically redirect the end-user to the payment screen.
| Argument |
Description |
| Country |
Specifies the country.
Supported countries:
- BE
- Belgium
- NL
- Netherlands
|
| Language |
Specifies the payment screen language.
Supported languages:
- DE
- German
- EN
- English
- FR
- French
- NL
- Dutch
- IT
- Italian
- ES
- Spanish
- JA
- Japanese
|
| Amount |
Specifies the amount (in cents) of the payment.
The minimum amount is 200 cents, the maximum amount is 200000 cents. |
| Description |
Specifies the description of the payment. |
Example
In the examples below, we will be initiating a MisterCash payment of € 2.00 and redirecting the end-user to the MisterCash payment screen.
PHP
require_once( "icepay.php" );
$mistercash = new ICEPAY_MisterCash( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $mistercash->Pay( "NL", "EN", 200, "MisterCash payment of 2.00 EUR" );
header( "location: " . $url );
C#
ICEPAY.ICEPAY_MisterCash w = new ICEPAY.ICEPAY_MisterCash( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
string url = w.Pay("NL", "EN", 200, "MisterCash payment of 2.00 EUR");
Response.Redirect(url);
VB.NET
Dim w as new ICEPAY.ICEPAY_MisterCash(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
Dim url as string = w.Pay("NL", "EN", 200, "MisterCash payment of 2.00 EUR");
Response.Redirect(url);
|
| ICEPAY_PayPal |
For payments with PayPal. |
Open › |
ICEPAY_PayPal Class
The ICEPAY_PayPal class is used to initiate PayPal payments.
Methods
ICEPAY_PayPal.Pay ( string country, string currency, int amount, string description )
Calling the Pay method will return you a URL to the PayPal 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 end-user.
The country code consists of a 2 letter country code in ISO 3166-1 format such as NL, DE, UK, BE.
You can also use "00" for global coverage.
|
| Currency |
Specifies the currency of the payment. The following currencies are supported:
- GBP
- Pound sterling
- EUR
- Euro
- USD
- U.S. dollar
|
| 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. |
|
| ICEPAY_PaySafeCard |
For payments with the PaySafeCard. |
Open › |
ICEPAY_PaySafeCard Class
The ICEPAY_PaySafeCard class is used to initiate paysafecard payments.
Methods
ICEPAY_PaySafeCard.Pay ( string currency, int amount, string description )
Calling the Pay method will return you a URL to the paysafecard payment screen. You can use this URL to automatically redirect the end-user to the payment screen.
| Argument |
Description |
| Currency |
Specifies the currency of the payment. The following currencies are supported:
- GBP
- Pound sterling
- EUR
- Euro
- USD
- U.S. dollar
|
| 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. |
|
| ICEPAY_Phone |
For global phone payments. |
Open › |
ICEPAY_Phone Class
The ICEPAY_Phone class is used to initiate short phone payments.
Methods
ICEPAY_Phone.Pay ( string country , string language , string currency , string amount , string description )
Calling the Pay method will return you a URL to the phone 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 caller. |
| Language |
Specifies the payment screen language and voice language. |
| Currency |
Specifies the currency of the payment. |
| Amount |
Specifies the amount (in cents) of the payment. |
| Description |
Specifies the description of the payment. |
The phone payment method has more restrictions than other payment methods. The following document shows the allowed combinations: ICEPAY Supported Parameters Sheet
Example
PHP
require_once( "icepay.php" );
$p = new ICEPAY_Phone( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $p->Pay( "BE", "EN", "EUR", 125, "Phone payment of 1.25 EUR" );
header( "location: " . $url );
C#
ICEPAY.ICEPAY_Phone p = new ICEPAY.ICEPAY_Phone(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
string url = p.Pay("BE", "EN", "EUR", 125, "Phone payment of 1.25 EUR");
Response.Redirect(url);
VB.NET
Dim p as new ICEPAY.ICEPAY_Phone(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ")
Dim url as string = p.Pay("BE", "EN", "EUR", 125, "Phone payment of 1.25 EUR")
Response.Redirect(url)
|
| ICEPAY_SMS |
For SMS payments. |
Open › |
ICEPAY_SMS Class
The ICEPAY_SMS class allows you to initiate SMS payments.
Methods
ICEPAY_SMS.Pay ( string country , string language , string currency , int amount , string description )
Calling the Pay method will return you a URL to the SMS payment screen. You can use this URL to automatically redirect the end-user.
| Argument |
Description |
| Country |
Specifies the country of the end-user. |
| Language |
Specifies the payment screen language and the language of the outgoing SMS message.
The following languages are supported:
- EN
- English
- NL
- Dutch
|
| Currency |
Specifies the currency of the payment. |
| Amount |
Specifies the amount (in cents) of the payment. Please see the next table for more information on the allowed amounts. |
| Description |
Specifies the description of the payment. |
The SMS payment method has more restrictions than other payment methods. The following document shows the allowed combinations: ICEPAY Supported Parameters Sheet
|
| ICEPAY_Wire |
For global wire transfer payments. |
Open › |
ICEPAY_Wire Class
The ICEPAY_Wire class is used to initiate wire transfer payments.
Methods
ICEPAY_Wire.Pay ( string language , string currency , string amount , string description )
Calling the Pay method will return you a URL to the wire transfer 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:
- DE
- German
- EN
- English
- ES
- Spanish
- FR
- French
- NL
- Dutch
|
| Currency |
Specifies the currency of the payment.
Supported currencies:
- EUR
- Euro
- GBP
- Pound sterling
- USD
- U.S. dollar
|
| 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 Wire Transfer payment of € 0.30 and redirecting the end-user to the wire transfer payment screen.
PHP
require_once( "icepay.php" );
$w = new ICEPAY_Wire( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
$url = $w->Pay( "EN", "EUR", 30, "Wire transfer payment of 0.30 EUR" );
header( "location: " . $url );
C#
ICEPAY.ICEPAY_Wire w = new ICEPAY.ICEPAY_Wire( 10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ" );
string url = w.Pay("EN", "EUR", 30, "Wire transfer payment of 0.30 EUR");
Response.Redirect(url);
VB.NET
Dim w as new ICEPAY.ICEPAY_Wire(10000, "ABcdEFgHIJklmNOPQrSTUvwXyZ");
Dim url as string = w.Pay("EN", "EUR", 30, "Wire transfer payment of 0.30 EUR");
Response.Redirect(url);
|