10002安全标头无效

时间:2011-04-06 10:59:27

标签: asp.net soap paypal

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);

0 个答案:

没有答案