贝宝返回URL-使用GET参数? [英] Paypal return URL - using GET parameters?

查看:64
本文介绍了贝宝返回URL-使用GET参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我用来测试Paypal网站付款标准上载的一些简单代码.

Here's some simple code I'm using to test the Paypal Website Payments Standard upload thingy.

我的返回URL是 http://mysite/index.php?module = store& ; show = order_confirm 我经历了付款过程,当我结束付款并返回到页面时,它只是将我返回到index.php(即没有额外的参数).

My return URL is http://mysite/index.php?module=store&show=order_confirm I go through the payment process, and when I get to the end and it returns me to the page, it instead just returns me to index.php (i.e. without the extra parameters).

任何人都知道这是怎么回事

Anyone know what the deal with this is

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">

    <input type="hidden" name="cmd" value="_cart" />

    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="return" value="http://mysite/index.php?module=store&amp;show=order_confirm" />
    <input type="hidden" name="currency_code" value="EUR" />

    <input type="hidden" name="business" value="b.coug_1277121937_biz@gmail.com">

            <input type="hidden" name="item_name_1" value="adaddada" />
            <input type="hidden" name="amount_1" value="30.00" />

            <input type="hidden" name="quantity_1" value="1" />
                            <input type="hidden" name="item_name_2" value="wuiui" />
            <input type="hidden" name="amount_2" value="50.00" />
            <input type="hidden" name="quantity_2" value="1" />


    <input type="hidden" name="custom" value="19" />

    <input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" alt="PayPal - The safer, easier way to pay online">

</form>

推荐答案

我不确定为什么Paypal在做它正在做的事情,但是我怀疑他们添加自己的GET参数的愿望正在消除您自己的想法.如果您可以使用mod_rewrite或类似的工具,则可能需要尝试以下方法:

I'm not sure why Paypal is doing what it's doing, but I suspect their desire to add their own GET parameters is wiping out your own. You might want to try something like this, if mod_rewrite or something similar is available to you:

编写更改此规则的规则:

write a rule that changes this:

http://mysite/store/order_confirm/?merchant_return_link=Test+Store

对此

http://mysite/index.php?merchant_return_link=Test+Store&module=store&show=order_confirm

这篇关于贝宝返回URL-使用GET参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆