$amount = $_COOKIE["amount"];
and
$amount = $_COOKIE['amount'];
To be sure the the PHP-script is okay I've tried entering 5678:
<?php
require_once('xyz.class.php');
$partner_id = '123456';
$amount = '5678';
$description = 'Your order';
.....
?>
With above code the script seems okay. Do you have another suggestion entering the cookie value in $amount?
Nobody any suggestion to solve this?