【问题标题】:EWP Settings error in PayPal integration processPayPal 集成过程中的 EWP 设置错误
【发布时间】:2017-10-14 02:58:48
【问题描述】:

我正在通过 PHP 和 MySQLi 建立自己的电子商务商店。当前测试站点为:http://taxreturnsolutions.uk/ecommerce/

我已遵循本指南:https://www.codexworld.com/paypal-standard-payment-gateway-integration-php/

已经一切设置和工作都很好,我可以点击立即购买按钮,它会将我带到沙盒网站,我可以购买。我的 SQLi 数据库将使用相关数据等进行更新。但是现在我不断从 PayPal Sandbox 收到以下消息:

*注意网址:/webapps/shoppingcart/error?flowlogging_id=7be60528d708&code=EWP_SETTINGS

我每次按下“立即购买”按钮时都会收到此问题,但在此之前,这是一个间歇性问题,例如 3/10 次我使用“立即购买”按钮会出现此错误,并且 7/10 次处理正确。

我的按钮代码如下:

                    $paypalURL = "https://www.sandbox.paypal.com/cgi-bin/webscr"; //Test PayPal API URL
                    $paypalID = 'ukpwneduk-facilitator@hotmail.com'; //Business Email
                            <!-- Button -->
                            <?php 
                            
                                    if(isset ($_SESSION['login_user'])){
                                            echo "
                                            <form action=' $paypalURL ' method='post' style='text-align: center;'>
                                                <!-- Identify your business so that you can collect the payments. -->
                                                <input type='hidden' name='business' value='$paypalID'>
                                                
                                                <!-- Specify a Buy Now button. -->
                                                <input type='hidden' name='cmd' value='_xclick'>
                                                
                                                <!-- Specify details about the item that buyers will purchase. -->
                                                <input type='hidden' name='product_name' value='$product_array[$key]['product_name']'>
                                                <input type='hidden' name='product_id' value='$product_array[$key]['product_id']'>
                                                <input type='hidden' name='product_price' value='$product_array[$key]['product_price']'>
                                                <input type='hidden' name='currency_code' value='GBP'>
                                                <input type='hidden' name='notify_url' value='http://taxreturnsolutions.uk/ecommerce/payments/ipn.php'> 
                                                
                                                <!-- Specify URLs -->
                                                <input type='hidden' name='cancel_return' value='http://taxreturnsolutions.uk/ecommerce/payments/cancel.php'>
                                                <input type='hidden' name='return' value='http://taxreturnsolutions.uk/ecommerce/payments/success.php'>

                                                
                                                <!-- Display the payment button. -->
                                                <input type='image' name='submit' border='0'
                                                src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif' alt='PayPal - The safer, easier way to pay online'>
                                                <img alt='' border='0' width='1' height='1' src='https://www.paypalobjects.com/en_US/i/scr/pixel.gif' >
                                            </form> ";
                                            
                                    } else
                                    {
                                    echo "<p style='text-align: center;'><b> Log in</b> to Buy Now </p>";
                                    }   
                                    ?>

【问题讨论】:

  • 我已经解决了这个问题。我需要允许未加密的网站向贝宝付款。
  • 我面临同样的问题。您能否解释一下允许未加密网站向贝宝付款的步骤。

标签: php paypal paypal-sandbox


【解决方案1】:

我认为问题出在 PayPal 配置中。 您需要允许未加密的网站向贝宝付款。 为此,请登录您的 PayPal 帐户:

个人资料和设置 --> 我的销售工具 --> 网站偏好

转到“加密网站付款”部分 并选择“关闭”到“阻止非加密网站付款”:

这应该可以正常工作! 祝你好运

【讨论】:

    【解决方案2】:

    默认情况下,您接受来自加密和未加密按钮的付款。为了提高安全性,您可以阻止买家通过未加密的按钮向您付款。

    您似乎禁用了未加密的按钮,这就是为什么 Paypal 拒绝来自您的买家的付款,这些买家点击了未加密的“立即购买”按钮、未加密的捐赠按钮或未加密的订阅按钮。这是您看到 EWP_SETTINGS 错误消息的时候。

    如果您之前阻止了未加密按钮的付款,以下是接受所有付款的方法:

    1. 登录到您的 PayPal 帐户。单击“注销”旁边的业务资料图标,然后选择资料和设置。
    2. 单击我的销售工具。
    3. 单击“网站首选项”附近的更新。
    4. 选择“阻止非加密网站付款”旁边的“关闭”

    关闭此设置后,您将不再收到错误消息。

    【讨论】:

      猜你喜欢
      • 2015-05-03
      • 2018-12-25
      • 2012-06-09
      • 2016-11-16
      • 2016-07-21
      • 2019-02-21
      • 2014-02-20
      • 2011-09-25
      • 1970-01-01
      相关资源
      最近更新 更多