PayPal(标准)订阅按钮返回URL中Auth的含义是什么?

8

我在WordPress网站上有一个订阅按钮(使用PayPal Payments Standard Integration)。

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="FRG9AB9A93MUN">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Premium Subscription">
<input type="hidden" name="item_number" value="321">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://example.com/success">
<input type="hidden" name="cancel_return" value="http://example.com/cancel">
<input type="hidden" name="src" value="1">
<input type="hidden" name="a3" value="299.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

我正在使用PayPal Sandbox测试功能。我使用WordPress PayPal Framework插件 (http://wordpress.org/extend/plugins/paypal-framework)

我的问题

成功支付(订阅)后,买家带着 'auth' 和 'form_charset' 返回到返回网址 (http://example.com/success/?auth=AtKlH609fYvJhW2wmFr9iMmXboz9JEB64TJjNpLVH8d0OlBbnOpn-TeeCvZT6VWOcoo8XG4GD0AeftCUMdNWCAQ&form_charset=UTF-8)

有人能解释一下 'auth' 和 'form_charset' 的含义吗?我可以通过NVP API获得有关交易的更多信息吗?那么我应该使用哪个NVP API方法?

我可以正确地接收这些交易的IPN消息。

到目前为止我做了什么

我熟悉PayPal快速结帐集成、捕获IPN消息并处理它们等。

我已经阅读了PayPal指南中的NVP API方法、请求和响应。 https://cms.paypal.com/cms_content/CA/en_US/files/developer/PP_NVPAPI_DeveloperGuide.pdf

我也看了一些其他的PayPal指南。

以下问题提到了“加密变量名为auth”。但对我没有帮助。 (Paypal sandbox return url)

这个问题也涉及到成功返回。 (paypal redirect on successful checkout)


你找到了从授权参数获取交易详情的方法吗? - knagode
1个回答

13

1
谢谢您指出“rm”参数,这帮助我更好地理解了这个过程。谢谢。 - Upeksha
1
太棒了!我一直在寻找一种在成功页面上放置额外数据的方法,而不需要使用PDT。这太完美了!非常感谢你!现在我可以验证调用我的成功页面是否来自PayPal(足够接近),而不是一些偶然发现该页面的人。我欠你一杯啤酒。 - mattauckland

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接