代码之家  ›  专栏  ›  技术社区  ›  dineshkashera

在WorldPay中付款后无法在自定义成功页面上重定向

  •  0
  • dineshkashera  · 技术社区  · 8 年前

    我已经按照下面的所有步骤在WorldPay面板中设置了响应重定向的所有配置,但在我的自定义成功页面上仍然没有重定向。

    我按照以下步骤设置WorldPay:

    1. 登录WorldPay,打开所需安装进行编辑

    2. 勾选“已启用付款响应?”

    3. 向将接收/处理WorldPay发布数据的页面提供“付款响应URL”。
    4. 在“购物者重定向URL”中输入相同的URL
    5. 勾选“启用购物者重定向按钮”

    6. 勾选“启用购物者响应”

    我已将付款响应URL设置为: https://my_domain.com/worldpay-response.php 并在根服务器路径上创建worldpay-response.php文件。

    但我仍然无法在worldpay-response.php上获取$\u post数据。

    WorldPay付款响应的文档: click here

    1 回复  |  直到 7 年前
        1
  •  2
  •   dineshkashera    8 年前
  • enter image description here

    <wpdisplay item="MC_callback"> 
    

    enter image description here

    enter image description here

    enter image description here

    <html>
          <head>
            <title>Thank you for your payment</title>
          </head>
          <WPDISPLAY ITEM="MC_cancelurl" DEFAULT="" PRE="<meta http-equiv='refresh' 
          content='0;url=" POST="' />">
          <b style="text-align:center;">Please wait while you are being redirected.</b>
      </html>
    

    <html>
        <head>
            <title>Thank you for your payment</title>
        </head>
        <WPDISPLAY ITEM="MC_returnurl" DEFAULT="" PRE="<meta http-equiv='refresh' content='0;url=" POST="' />">
        <b style="text-align:center;">Please wait while you are being redirected.</b>
    </html>
    
        <!-- For live payments url should be https://secure.worldpay.com/wcc/purchase -->
    
        <form action="https://secure-test.worldpay.com/wcc/purchase" method="POST">
    
            <!-- This next line contains the testMode parameter - it specifies that the submission is a test submission -->
    
            <input type="hidden" name="testMode" value="100" > <!-- testmode value sholud be 100 , for live mode 0  -->
    
            <!-- This next line contains a mandatory parameter. Put your Installation ID inside the quotes after value= -->
    
            <!-- You will need to get the installation ID from your Worldpay account. Login to your account, click setting and under installations
            you should have an option called select junior and a number, put the number between “” e.g. “123456”-->
    
            <input type="hidden" name="instId" value="YOUR_INSTALLATION_ID">
    
            <!-- Another mandatory parameter. Put your own reference identifier for the item purchased inside the quotes after value= -->
    
            <input type="hidden" name="cartId" value="CART_NAME">
    
            <!-- Another mandatory parameter. Put the total cost of the item inside the quotes -->
    
            <!-- Another mandatory parameter. Put the code for the purchase currency inside the quotes after value= like GBP,INR-->
    
            <input type="hidden" name="currency" value="CURRENCY_CODE">
    
            <!-- This creates the button. When it is selected in the browser, the form submits the purchase details to us. -->
    
            <input type="hidden" name="MC_callback" value="YOUR_RESPONSE_URL">
    
            <input type="hidden" name="MC_returnurl" value="YOUR_RETURN_URL">
    
            <input type="hidden" name="MC_cancelurl" value="YOUR_CANCEL_URL">
    
            <input type="text" name="MC_username" value=""  placeholder="Name">
    
            <input type="text" name="tel" value=""  placeholder="Contact Number">
    
            <input type="email" name="email" value=""  placeholder="Email Address">
    
            <input type="text" name="address1" value="" placeholder="House Name/Number">
    
            <input type="text" name="address2" value=""  placeholder="Street Name">
    
            <input type="text" name="postcode" value=""  placeholder="Postcode">
    
            <input type="text" name="amount" value="" required placeholder="amount (&pound;)" id="amount-cs">
    
            <input type="submit" name="make_wordpay_payment" id="make_wordpay_payment" value="Pay Now">
    
        </form>
    

    http://support.worldpay.com/support/kb/bg/customisingadvanced/custa6012.html