我正在使用 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);
最佳答案
PayPal 不会向卖家发送账单地址。这是使用该系统的买家的优势之一......他们不必与他们购买的所有不同卖家共享任何账单信息。
您从 PayPal 获得的唯一地址(在 API 响应、IPN 通知等中)将是送货地址,并且只有在包含在原始交易中时才会提供。
关于c# - PayPal Adaptive Payments - 通过 IPN/API 检索发件人的账单地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24267248/