【问题标题】:Paypal Returns Auth and nothing else as return data for a SubscriptionPaypal 返回 Auth 并且没有其他内容作为订阅的返回数据
【发布时间】:2012-01-20 05:11:37
【问题描述】:

我正在尝试在 .net 上为 Paypal 设置订阅付款。我正在使用沙盒进行测试。当我将表单提交到 paypal 并在沙箱中付款然后单击 Return to Merchant 时,我得到一个包含一些加密文本的 auth 变量。我希望查询或表单变量包含成功或失败的详细信息。

谁能帮我解决这个问题?我找不到任何文档,尽管我确实在一个有同样问题的人的论坛上找到了一个未回答的问题。

我在paypal表单中使用以下代码

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

id="paypaldata">
<input type="hidden" name="cmd" value="_xclick-subscriptions"/> 
<input type="hidden" name="business" value="hidden_1319943901_biz@gmail.com"/> 
<input type="hidden" name="item_name" value="Hidden Subscription"/> 
<input type="hidden" name="a3" value="27.00"/> 
<input type="hidden" name="p3" value="1"/> 
<input type="hidden" name="t3" value="M"/> 
<input type="hidden" name="src" value="1"/> 
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="srt" value="0"/> 
<input type="hidden" name="sra" value="1"/> 
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="custom" value="@ViewBag.Softid" />
<input type="hidden" name="return" value="http://localhost:5511/order/paypal" />
</form> 

【问题讨论】:

    标签: .net paypal e-commerce subscription


    【解决方案1】:

    好的,看来我注定要亲自回答我最近的所有问题。我找到了答案。

    原因是我在我的 Paypal 帐户上启用了 IPN,而我未能在此代码中包含 notify_url。当我包含一个 notify_url 时,Paypal 开始向我发送包含交易详细信息的交易变量。

    【讨论】:

      猜你喜欢
      • 2014-10-21
      • 2012-12-15
      • 1970-01-01
      • 2020-01-03
      • 2021-05-21
      • 1970-01-01
      • 1970-01-01
      • 2014-12-23
      • 1970-01-01
      相关资源
      最近更新 更多