我在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)