Class references
The ICEPAY_Phone class is used to initiate short phone payments.
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
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 );
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);
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)