2014-12-31 60 views
0

我创建了一个贝宝沙箱帐户,创建的用户,我有所有的证书,这是正确的凭据inspite它抛出以下错误反复1002错误的API调用的PayPal沙箱

您没有权限,使这个API调用

我发现无数的链接,但未能解决问题,我有点坚持在这里

请求

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

和应对

<?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> 

请告知

感谢

回答