Class references
The ICEPAY_CC class allows you to initiate credit card payments.
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:
|
| Language |
Specifies the language of the payment screen. The following languages are supported:
|
| Currency |
Specifies the currency of the payment. The following currencies are supported:
|
| Amount | Specifies the amount (in cents) of the payment. |
| Description | Specifies the description of the payment. |
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.
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 );
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);
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)