贝宝返回网址 [英] PayPal return URL

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

问题描述

这是我的 Paypal 按钮的代码:

Here's the code for my Paypal button:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="my@email.com">
    <input type="hidden" name="lc" value="GB">
    <input type="hidden" name="button_subtype" value="products">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="rm" value="0">
    <input type="hidden" name="return" value="http://www.example.com">
    <input type="hidden" name="item_name" value="My Item">
    <input type="hidden" name="amount" value="25.00">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="bn" value="PP-BuyNowBF:proceed_btn.gif:NonHosted">
    <input type="hidden" name="item_number" value="4BD9569402CDE">
    <input type="image" src="http://www.example.com/image.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

是否可以将 item_number 添加到返回 URL?

Is it possible to add the item_number to the return URL?

例如,在 PayPal 内完成付款后,用户会被发送回 http://www.example.com?item_number=4BD9569402CDE

For example, after completing the payment within PayPal the user gets sent back to http://www.example.com?item_number=4BD9569402CDE

推荐答案

我决定换一种方式来解决这个问题.

I've decided to go about it a different way.

我意识到您可以告诉 PayPal 通过 POST 发回它的所有查询,因此我将向我的 PHP 添加一些 POST 检查,它应该可以正常工作.

I realized that you can tell PayPal to send back all of it's queries via POST, so I'll add some POST checks to my PHP and it should work fine.

感谢您的回复.

这篇关于贝宝返回网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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