var client = new PayPalAPISoapBinding();
client.RequesterCredentials = new CustomSecurityHeaderType();
client.RequesterCredentials = new CustomSecurityHeaderType
{
Credentials = new UserIdPasswordType
{
Signature = "mysginature",
Username = "myusername",
Password = "mypasss"
}
};
当我尝试使用“10002安全标头无效”但是凭据为真时
var request = new MassPayReq
{
MassPayRequest = new MassPayRequestType
{
EmailSubject = "adsddadd",
ReceiverType = ReceiverInfoCodeType.EmailAddress,
MassPayItem = payments.Select(x => new MassPayRequestItemType
{
Amount = new BasicAmountType
{
currencyID = x.Currency == Currency.Euro ? CurrencyCodeType.EUR : CurrencyCodeType.USD,
Value = x.Amount.ToString()
},
ReceiverEmail = x.PaypalEmailAccount,
Note = "adasdad"
}).ToArray(),
Version = "61.0"
},
};
var result = client.MassPay(request);