paypalipn和custom不会将自定义变量添加到数据库中


paypal ipn and custom will not add custom variable to database

我一直试图通过Paypal ipn传递自定义变量,但它没有添加自定义变量中的内容。看看数据库,它只是一片空白。

这是我的输入,将自定义变量传递给Paypal

echo '<input type = "hidden" name="custom_'.$num.'" value= "'.$get_row['file'].'">';

这是我的ipn代码

$filename=$_POST['custom'];

在这里我告诉输入在数据库中输入

$query = "INSERT INTO ibn_table
        (itransaction_id,ipayerid,iname,iemail,itransaction_date, ipaymentstatus,ieverything_else,nameofitem,itemNumber,filename)
        VALUES
        ('$transaction_id','$payerid','$firstname $lastname','$payeremail','$mdate', '$paymentstatus','$otherstuff','$nameofitem','$itemNumber','$filename')";

任何帮助都将是很好的感谢

根据变量引用,字段应简单命名为custom。它应该以同样的方式通过IPN和PDT传递给您。