[英]1002 Error API call paypal sandbox
I have created a paypal sandbox account, and created user, and i have all credentials, inspite of this correct credentials it throws following error repeatedly 我创建了一个贝宝沙箱帐户,并创建了一个用户,并且我拥有所有凭据,尽管使用了正确的凭据,但它反复引发以下错误
You do not have permissions to make this API call 您无权进行此API调用
I have found countless links,but unable to resolve the issue, i am kind of stuck here 我发现了无数链接,但无法解决问题,我有点卡在这里
request is 请求是
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes">
<soapenv:Header>
<ns:RequesterCredentials>
<ebl:Credentials>
<ebl:Username>pz.al2_api1.digitalavenues.com</ebl:Username>
<ebl:Password>5HDDMdfdYT538MXCB34</ebl:Password>
<ebl:Signature>A1Cl8ovwuXUVbVcsdsdfsdhDJyJaZGdRfsdfsd8yArLYlQIyV4MEX7pevhg7qkdEdKl8</ebl:Signature>
<ebl:Subject>testSubject</ebl:Subject>
</ebl:Credentials>
</ns:RequesterCredentials>
</soapenv:Header>
<soapenv:Body>
<ns:CreateRecurringPaymentsProfileReq>
<ns:CreateRecurringPaymentsProfileRequest>
<ebl:Version>117.0</ebl:Version>
<ebl:CreateRecurringPaymentsProfileRequestDetails>
<ebl:CreditCard>
<ebl:CreditCardType>Visa</ebl:CreditCardType>
<ebl:CreditCardNumber>4917760970795152</ebl:CreditCardNumber>
<ebl:ExpMonth>12</ebl:ExpMonth>
<ebl:ExpYear>2014</ebl:ExpYear>
<ebl:CVV2>962</ebl:CVV2>
</ebl:CreditCard>
<ebl:RecurringPaymentsProfileDetails>
<ebl:BillingStartDate>2014-12-31T14:43:39T00:00:00:000Z</ebl:BillingStartDate>
</ebl:RecurringPaymentsProfileDetails>
<ebl:ScheduleDetails>
<ebl:Description>Description</ebl:Description>
<ebl:TrialPeriod>
<ebl:BillingPeriod>Day</ebl:BillingPeriod>
<ebl:BillingFrequency>1</ebl:BillingFrequency>
<ebl:TotalBillingCycles>2</ebl:TotalBillingCycles>
<ebl:Amount currencyID="USD">2.0</ebl:Amount>
</ebl:TrialPeriod>
<ebl:PaymentPeriod>
<ebl:BillingPeriod>Day</ebl:BillingPeriod>
<ebl:BillingFrequency>1</ebl:BillingFrequency>
<ebl:TotalBillingCycles>8</ebl:TotalBillingCycles>
<ebl:Amount currencyID="USD">5.0</ebl:Amount>
</ebl:PaymentPeriod>
<ebl:MaxFailedPayments>3</ebl:MaxFailedPayments>
<ebl:AutoBillOutstandingAmount>NoAutoBill</ebl:AutoBillOutstandingAmount>
</ebl:ScheduleDetails>
</ebl:CreateRecurringPaymentsProfileRequestDetails>
</ns:CreateRecurringPaymentsProfileRequest>
</ns:CreateRecurringPaymentsProfileReq>
</soapenv:Body>
</soapenv:Envelope>
and response is 回应是
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI">
<SOAP-ENV:Header>
<Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType">
</Security>
<RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType">
<Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType">
<Username xsi:type="xs:string">
</Username>
<Password xsi:type="xs:string">
</Password>
<Signature xsi:type="xs:string">
</Signature>
<Subject xsi:type="xs:string">
</Subject>
</Credentials>
</RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body id="_0">
<CreateRecurringPaymentsProfileResponse xmlns="urn:ebay:api:PayPalAPI">
<Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2014-12-31T09:13:44Z</Timestamp>
<Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack>
<CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">4c2815502399a</CorrelationID>
<Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType">
<ShortMessage xsi:type="xs:string">Authentication/Authorization Failed</ShortMessage>
<LongMessage xsi:type="xs:string">You do not have permissions to make this API call</LongMessage>
<ErrorCode xsi:type="xs:token">10002</ErrorCode>
<SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode>
</Errors>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">117.0</Version>
<Build xmlns="urn:ebay:apis:eBLBaseComponents">13630372</Build>
<CreateRecurringPaymentsProfileResponseDetails xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:CreateRecurringPaymentsProfileResponseDetailsType">
<ProfileID xsi:type="xs:string">
</ProfileID>
<TransactionID xsi:type="xs:string">
</TransactionID>
</CreateRecurringPaymentsProfileResponseDetails>
</CreateRecurringPaymentsProfileResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Please advise 请指教
Thanks 谢谢
You need to make sure that your code is passing the credentials ,even though it shows in the code, ( username , password and signature ) to the PayPal . 即使代码中显示了用户名,密码和签名,也需要确保您的代码已将凭据传递给PayPal。 Not passing all the three parameters to the PayPal is also one of the reason for this error message . 没有将所有三个参数都传递给PayPal也是此错误消息的原因之一。 You can this post here : 您可以在这里发布:
PayPal Classic API Authenticates one call but not the next PayPal Classic API对一个呼叫进行身份验证,但对下一个呼叫则不进行身份验证
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.