getDeviceCapabilitiesFromAgent(); // see if this client is on a wireless device (or if they can't be identified) if(!$wurflObj->getDeviceCapability("is_wireless_device")){ //echo "

You should not be here

"; } else { $is_wireless = $wurflObj->getDeviceCapability('is_wireless_device'); $is_smarttv = $wurflObj->getDeviceCapability('is_smarttv'); $is_tablet = $wurflObj->getDeviceCapability('is_tablet'); $is_phone = $wurflObj->getDeviceCapability('can_assign_phone_number'); $is_mobile_device = ($is_wireless || $is_tablet); $device = $wurflObj->getDeviceCapability('device_os'); $device = $device . " " . $wurflObj->getDeviceCapability('device_os_version'); $model = $wurflObj->getDeviceCapability('brand_name'); $model = $model . " " . $wurflObj->getDeviceCapability('model_name'); $model = $model . " " . $wurflObj->getDeviceCapability('marketing_name'); $devicedescription= "You are on a ".$model . " - " . $device; } // see what this device's preferred markup language is //echo "Markup: ".$wurflObj->getDeviceCapability("preferred_markup"); // see the display resolution $width = $wurflObj->getDeviceCapability("resolution_width"); $height = $wurflObj->getDeviceCapability("resolution_height"); //echo "
Resolution: $width x $height
"; require_once '../allopass-apikit-php5/api/AllopassAPI.php'; $api = new AllopassAPI(); $response = $api->prepareTransaction(array( 'site_id' => 222616, 'pricepoint_id' => 342, 'product_name' => 'My Product', 'forward_url'=> 'http://sd-20614.dedibox.fr/~jabella/notif/index.php?page=accept', 'error_url'=> 'http://sd-20614.dedibox.fr/~jabella/notif/index.php?page=error', 'notification_url'=> 'http://sd-20614.dedibox.fr/~jabella/notif/index.php?page=notif', 'amount' => '3', 'reference_currency' => 'EUR', 'data' => 'bla blab bla', 'merchant_transaction_id' => 'TRANS765', )); //echo $response; $url = $response->getBuyUrl(); $trxid = $response->getTransactionId(); ?>