2013-05-29 36 views
0

以下是使用在沙箱環境中失敗的地址驗證呼叫的Paypal連接器示例。0002:您無權進行此API調用

我們得到錯誤"You do not have permissions to make this API call"。我們使用paypal Mulesoft連接器來驗證地址並付款。你可以看一看,讓我們知道如何使它成爲工作嗎?

貝寶企業賬戶的電子郵件地址:[email protected]。試圖調用其他功能,如授權,不要直接支付,退款等當我們正在同樣的錯誤..

SOAP請求:

<soap:Envelope [link removed]><soap:Header><ns2:RequesterCredentials xmlns:ns3="urn:ebay:apis:EnhancedDataTypes" xmlns:ns2="urn:ebay:api:PayPalAPI" xmlns="urn:ebay:apis:eBLBaseComponents"><Credentials><Username>[link removed]</Username><Password>1369269276</Password><Signature>AFcWxV21C7fd0v3bYYYRCpSSRl31AjYiSzqYGmMwbexuKiaJ.l.4vel4</Signature></Credentials></ns2:RequesterCredentials></soap:Header><soap:Body><ns2:AddressVerifyReq xmlns="urn:ebay:apis:eBLBaseComponents" xmlns:ns2="urn:ebay:api:PayPalAPI" xmlns:ns3="urn:ebay:apis:EnhancedDataTypes"><ns2:AddressVerifyRequest><Version>98.0</Version><ns2:Email>[link removed]</ns2:Email><ns2:Street>test</ns2:Street><ns2:Zip>test</ns2:Zip></ns2:AddressVerifyRequest></ns2:AddressVerifyReq></soap:Body></soap:Envelope>

SOAP響應:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope [link removed] [link removed] [link removed] [link removed] [link removed] xmlns:cc="urn:ebay:apis:CoreComponentTypes" [link removed] xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" [link removed] [link removed] xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Header><Security [link removed] 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"><AddressVerifyResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2013-05-23T21:31:13Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">db6273f7185de</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">98.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">5908853</Build><ConfirmationCode xsi:type="ebl:AddressStatusCodeType">None</ConfirmationCode><StreetMatch xsi:type="ebl:MatchStatusCodeType">None</StreetMatch><ZipMatch xsi:type="ebl:MatchStatusCodeType">None</ZipMatch></AddressVerifyResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

回答

0

AddressVerify是默認情況下未啓用的API。我已經提前並在您的帳戶中啓用了此功能。現在嘗試使用它進行測試,現在應該可以成功調用API調用。

+0

感謝您的幫助!!!我仍然看到這個問題。需要多長時間才能在Sandbox上進行更改?此外,是否有可能爲給定帳戶啓用其他功能,如直接付款,退款等。我們正在創建訂閱解決方案並需要調用這些功能。 – user2433510

+0

嗨,我能夠擊中verifyaddress函數,但得到錯誤時試圖擊中DoDirectPayment.ERROR 2013-05-30 15:46:04,093 [[paypalflow] .connector.http.mule.default.receiver.02] org。 mule.exception.DefaultMessagingException策略: 消息:無法調用doDirectPayment。消息有效負載的類型爲:字符串 代碼:MULE_ERROR - 2 異常堆棧爲: 1. null(java.lang.NullPointerException)java.lang.Class:-2(null) 2.無法調用doDirectPayment。消息有效負載的類型爲:String(org.mule.api.MessagingException) org.mule.module.paypal.processors.DoDirectPaymentMessageProcessor:177 – user2433510

+0

Chad可以設置允許我的沙箱帳戶的地址驗證嗎? [email protected] – Chizzle

相關問題