8

我的 WordPress 网站上有一个订阅按钮(使用 PayPal Payments 标准集成)。

<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 框架插件(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 Express Checkout 集成、捕获 IPN 消息并处理它们等。

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

我也浏览了其他一些 PayPal 指南。

以下问题提到了“名为 auth 的加密变量”。但这对我没有帮助。(Paypal 沙箱返回 url

这个问题还涉及成功的回报。(成功结帐时的贝宝重定向

4

1 回答 1

13

将“rm”参数更改为“2”。这会导致一个 POST 到成功页面,其中包含所有事务变量。在这里阅读更多

于 2013-01-03T13:04:25.723 回答