Let's try the following:
goto return.and find function validateQueryString() and change to this:
function validateQueryString() { echo "validing the query string now\n"; $querystring = $_SERVER['QUERY_STRING']; echo $querystring."\n"; echo $_GET['signature']; $obj = new Amazon_FPS_CBUIUtils(AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY); //Original signature received in response from Amazon FPS should be specified. $signatureMatched = $obj->validateQueryString($querystring,$_GET['signature']); if ($signatureMatched) { echo "signature matched \n"; $request = new Amazon_FPS_Model_PayRequest(); //set the proper senderToken here. $request->setSenderTokenId($_GET['tokenID']); $amount = new Amazon_FPS_Model_Amount(); $amount->setCurrencyCode("USD"); //set the transaction amount here; $amount->setValue($_SESSION['transaction_amount']); $request->setTransactionAmount($amount); //set the unique caller reference here. $request->setCallerReference($_GET['callerReference']); $service = new Amazon_FPS_Client(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY); invokePay($service, $request); } else echo "Signature did not match \n"; }
and send a message here, please, including Signature did not match
Thanks.
source share