To ICEPAY Homepage »
Developer Network

Class references

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)