2013-09-29 3 views
0

это мой ipn.phpPaypal IPN Неверный статус ответа: 302

В моем файле ошибок журнала я reciving это сообщение: Invalid статус ответа: 302

И Im reciving почту из внутри "исключение" код , кто-то знает почему? У меня нет идеи, почему не удается ... Пожалуйста, мне нужна помощь!

Большое спасибо

<?php 
ini_set('log_errors', true); 
ini_set('error_log', dirname(__FILE__).'/ipn_errors.log'); 

include '../../modelo.php'; 
include('ipnlistener.php'); 
$listener = new IpnListener; 
$listener->use_sandbox = true; 
$listener->use_ssl = false; 
$verified = $listener->processIpn($my_post_data); 
try { 
// $listener->requirePostMethod(); 
     $verified = $listener->processIpn(); 
     mail('[email protected]', 'TRY ok', 'ok'); 

} catch (Exception $e) { 
    error_log($e->getMessage()); 
     mail('[email protected]', 'Exception', 'nok'); 
    exit(0); 
} 
mail('[email protected]', 'final del script', 'include'); 
?> 

И это мой HTML-код:

<form name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> 
    <input type="hidden" name="cmd" value="_xclick"> 
    <input type="hidden" name="business" value="[email protected]"> 
    <input type="hidden" name="currency_code" value="EUR"> 
     <input type="hidden" name="item_name" value="<?php echo $product;?>"> 
     <input type="hidden" name="amount" value="<?php echo $amount;?>"> 
    <input type="hidden" name="return" value="http://www.myweb.com/thankspage.php"> 
     <input type="hidden" name="custom" value="<?php echo $bookcode; ?>"> 
    <input type="hidden" name="notify_url" value="http://www.myweb.com/ipn.php"> 
    <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" 
     border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> 
</form> 

ответ

1
$listener->use_ssl = true; 

песочница нуждается в SSL