【问题标题】:0002: You do not have permissions to make this API call0002:您无权进行此 API 调用
【发布时间】:2013-05-25 01:50:27
【问题描述】:

这是一个使用在沙盒环境中失败的地址验证调用的 Paypal 连接器示例。

我们收到错误"You do not have permissions to make this API call"。我们正在使用 paypal Mulesoft 连接器来验证地址并付款。能否请您看一下并告诉我们如何使用它?

Paypal 企业帐户电子邮件地址:nileshk.jain-facilitator@gmail.com。我们在尝试调用其他功能(如授权、直接付款、退款等)时遇到同样的错误。

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>

【问题讨论】:

    标签: paypal connector


    【解决方案1】:

    AddressVerify 是默认未启用的 API。我已经在您的帐户上启用了此功能。现在尝试使用它进行测试,您现在应该可以成功调用 API。

    【讨论】:

    • 感谢您的帮助!!!。我仍然看到这个问题。更改在 Sandbox 上可用需要多长时间?此外,是否可以为给定帐户启用其他功能,例如直接付款、退款等。我们正在创建订阅解决方案,需要调用这些函数。
    • 嗨,我可以使用 verifyaddress 功能,但在尝试使用 DoDirectPayment.ERROR 2013-05-30 15:46:04,093 [[paypalflow].connector.http.mule.default 时出错.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy:消息:调用 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
    • 乍得你可以为我的沙盒帐户设置允许地址验证吗? canderson-facilitator@dkssystems.com
    猜你喜欢
    • 2014-08-20
    • 2020-05-06
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 2019-09-03
    • 1970-01-01
    • 2016-02-06
    • 1970-01-01
    相关资源
    最近更新 更多