【问题标题】:PayPal IPN Has Stopped Returning Verified NotificationsPayPal IPN 已停止返回已验证的通知
【发布时间】:2014-07-16 21:45:15
【问题描述】:

晚上好,

我的网站上有一个贝宝 IPN,它已经稳定运行了 2 年多,但最近它刚刚停止工作,我个人不知道为什么。

如果我要访问 paypal_ipn.php 文件 “http://www.top-proxies.co.uk/modules/selected_proxy/paypal_ipn.php”我收到一封来自贝宝的电子邮件,内容如下

来自英国 失败的 项目:
金额和状态:(费用:) 日期:
时间长度:
网站网址:
联系邮箱:
交易编号:
从: () 致:

这表明它在某些方面仍然有效。

但是,当有人在我的网站上完成购买时,他们已付款,但没有收到 IPN 验证电子邮件,因此我的网站不会自动列出广告位。

有人有什么建议吗?最近没有更改任何代码,所以贝宝最近更新了他们的系统或类似的东西吗?

添加了附加信息:

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <div class="form-group">   
            <input type="hidden" name="cmd" value="_xclick">
            <input type="hidden" name="business" value="<?php echo $paypalemail; ?>">
            <input type="hidden" name="lc" value="IN">
            <input type="hidden" name="item_name" value="<?php echo $sitename; ?> Advertise">
            <input type="hidden" name="item_number" value="Proxy Advertisement"> 
            <input type="hidden" name="button_subtype" value="services">
            <input type="hidden" name="currency_code" value="USD">
            <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
            <input type="hidden" name="image_url" value="<?php echo $sitelogo; ?>">
            <input type="hidden" name="return" value="<?php echo $scriptroot; ?>success.php">
            <input type="hidden" name="cancel_return" value="<?php echo $scriptroot; ?>failed.php">
            <input type="hidden" name="notify_url" value="<?php echo $scriptroot; ?>modules/selected_proxy/paypal_ipn.php">
            <br>
            <label>Advertisement Plan:</label>
            <br>
            <input class="form-control" type="hidden" name="on0" value="Length of Time">
            <select class="form-control" name="os0" id="os0" onchange="fun()">
                <?php
                for ($j = 0; $j < count($selected_plans); $j++) {
                    echo '<option  class="form-control" value="' . $selected_plans[$j][2] . ' Days">' . $selected_plans[$j][1] . '</option>';
                }
                ?>
            </select>
            <br>
            <label>Proxy Site URL (with <strong>http://</strong> and <strong>www</strong>):</label>
            <br>
            <input type="hidden" name="on1" value="Site URL">
            <input class="form-control" type="text" name="os1" maxlength="200">
            <br>
            <label>Contact Email:</label>
            <input type="hidden" name="on2" value="Contact Email">
            <br>
            <input class="form-control" type="text" name="os2" maxlength="200">
            <input type="hidden" name="currency_code" value="USD">
            <?php
            for ($j = 0; $j < count($selected_plans); $j++) {
                echo '<input type="hidden" name="option_select' . $j . '" value="' . $selected_plans[$j][2] . ' Days">
                <input type="hidden" name="option_amount' . $j . '" value="' . $selected_plans[$j][3] . '">
                ';
            }
            ?>
            <br>
            <label>Pay Via Paypal:</label>
            <br>
            <input type="hidden" name="option_index" value="0">
            <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="PayPal � The safer, easier way to pay online."><br>
            <input type="image" src="https://www.paypalobjects.com/en_US/i/bnr/horizontal_solution_PP.gif" border="0" name="submit" alt="PayPal � The safer, easier way to pay online.">
            <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
        </div>
    </form>

【问题讨论】:

  • 查看访问日志
  • @Dragon 你的意思是 apache/server 访问日志吗?
  • 是的,它会告诉您 paypal 是否确实在命中脚本及其脚本错误,或者 paypal 是否不再命中脚本。
  • 您是在付款请求中传递网址还是将其编码在您的帐户设置中?
  • 嘿,我的访问日志真的很烦人,只是在与 other_vhosts_access.log 文件相同的每一行上说“组合”。但是,是的,您可以看到 URL 正在通过表单传递。

标签: php paypal paypal-ipn


【解决方案1】:

在重新访问我的代码并仔细检查没有任何更改后,问题似乎出在 PayPal 方面!不知何故,我的企业帐户上的 PayPal IPN 设置已被关闭(禁用)。在重新输入我的 IPN 地址以进行验证和测试我的付款后,我从 PayPal 得到了正确的回复,一切都恢复正常了:D

要找到您的贝宝 IPN 设置,请转到“我的帐户”>“个人资料”>“我的销售偏好”,然后从该页面选择更新 IPN 设置。

祝你好运,希望这对某人有所帮助!

干杯, 蚂蚁。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-04
    • 2014-03-04
    • 2013-02-14
    • 2013-07-06
    • 2017-02-17
    • 2012-05-16
    • 2020-10-17
    • 1970-01-01
    相关资源
    最近更新 更多