【问题标题】:PayPal Adaptive Payments - retrieving sender's billing address via IPN / API?PayPal Adaptive Payments - 通过 IPN / API 检索发件人的帐单地址?
【发布时间】:2014-08-07 16:02:53
【问题描述】:

我正在使用 Adaptive Payments API 将用户从我的网站重定向到 PayPal 页面以完成付款。我已经将它与通过 IPN 收听的第 3 方发票服务连接起来。

由于某种原因,账单地址没有出现在 IPN 数据中,因此也没有出现在发票上。我需要将任何标志传递给 Adaptive Payments API 以告诉它传递帐单地址吗?

这是我目前使用 API 的方式:

    var receiverList = new ReceiverList
    {
        receiver = new List<Receiver>
                {
                    new Receiver(purchase.TotalPrice)
                        {                                   
                            email = _configurationReader.GetStringValue("PayPalEmail")
                        }
                }, 

    };

    var envelope = new RequestEnvelope("en_US");
    var payRequest = new PayRequest(envelope, ActionType.Pay.GetApiString(), cancelUrl, CurrencyCode.USDollar.GetApiString(), receiverList, returnUrl);

    var service = new AdaptivePaymentsService();
    var response = service.Pay(payRequest);
    purchase.PayPalPaymentId = response.payKey;

    return CreatePayPalRedirectUrl(response);

【问题讨论】:

    标签: c# paypal paypal-adaptive-payments


    【解决方案1】:

    PayPal 不会向卖家发送账单地址。这是使用该系统的买家的优势之一......他们不必与他们购买的所有不同卖家分享任何账单信息。

    您从 PayPal 获得的唯一地址(在 API 响应、IPN 通知等中)将是送货地址,并且只有在原始交易中包含该地址时才会提供。

    【讨论】:

      猜你喜欢
      • 2012-12-28
      • 2012-06-28
      • 2014-03-13
      • 2014-01-10
      • 2013-09-14
      • 2014-01-01
      • 2013-02-21
      • 2017-08-27
      • 2012-10-10
      相关资源
      最近更新 更多