【问题标题】:How to get paypal payer details using auth token?如何使用身份验证令牌获取贝宝付款人详细信息?
【发布时间】:2013-07-11 00:17:42
【问题描述】:

我正在研究 asp.net mvc。我正在尝试对我的网站实施贝宝订阅。我关注了这个link

就像他们指定的那样,我创建了一个类似的页面,

<html>
<body>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_xclick-subscriptions">
  <input type="hidden" name="business" value="nora@paypal.com">
  <input type="hidden" name="item_name" value="Baseball Hat Monthly">
  <input type="hidden" name="item_number" value="123">
  <input type="hidden" name="image_url"
value="https://www.yoursite.com/logo.gif">
  <input type="hidden" name="no_shipping" value="1">
  <input type="hidden" name="return"
value="http://www.yoursite.com/thankyou.htm">
  <input type="hidden" name="cancel_return"
value="http://www.yoursite.com/cancel.htm">
  <input type="hidden" name="a3" value="99">
  <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="sra" value="1">

  <input type="hidden" name="no_note" value="1">
  <input type="hidden" name="custom" value="customcode">
  <input type="hidden" name="invoice" value="invoicenumber">
  <input type="hidden" name="usr_manage" value="1">
  <input type="image"
     src="http://images.paypal.com/images/x-click-but01.gif"
border="0" name="submit" 
alt="Make payments with PayPal - it’s fast, free and secure!">
</form>
</body>
</html>

我正在使用贝宝沙盒来测试贝宝订阅。我可以付款,他们将我重定向到我在示例页面中提到的成功回调 url,查询字符串参数 auth=XXXXXXXXXXXXXXX。现在我想获取付款人详细信息,例如他的姓名、电子邮件地址等。有没有办法使用此身份验证参数获取付款人详细信息。请指导我。

【问题讨论】:

    标签: html asp.net-mvc paypal


    【解决方案1】:

    您可以使用GetTransactionDetails API 和交易ID 在您的第一笔付款处理完毕后获取此信息。如果您使用IPN,您也可以在自己的系统中查询此信息。

    【讨论】:

    • 感谢您的回复。我正在研究 asp.net mvc。如何调用 GetTransactionDetails api 意味着是否有任何 c# 库或需要进行任何休息调用。
    • PayPal 提供的所有 SDK 和示例代码都可以在 developer.paypal.com 和 paypal.github.io/#adaptive-payments-tab-csharp 上找到
    猜你喜欢
    • 1970-01-01
    • 2021-01-21
    • 2011-02-18
    • 2020-04-15
    • 2013-08-11
    • 1970-01-01
    • 2019-01-27
    • 1970-01-01
    • 2016-03-01
    相关资源
    最近更新 更多