3
我正在使用Adaptive Payments API將用戶從我的網站重定向到PayPal頁面以完成付款。我已經將這一點與通過IPN偵聽的第三方開票服務掛鉤。PayPal Adaptive Payments - 通過IPN/API檢索發件人的帳單地址?
由於某些原因,帳單地址不會顯示在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);