【问题标题】:You do not have permissions to make this API call using SOAP for DoDirectPaymentReq您无权使用 SOAP for DoDirectPaymentReq 进行此 API 调用
【发布时间】:2013-04-04 17:30:19
【问题描述】:

我对这个有点生气。我记得上次我试图让它工作时有一段荒谬的时间,然后他们改变了它!我尝试导入我的旧用户,但它说密码不正确。

下面是我要发布到https://api-3t.sandbox.paypal.com/2.0/ 的肥皂,这一切以前都有效,它仍然在生产环境中有效,但是每当我尝试在沙箱中运行它时,我都会得到 ​​p>

LONGMESSAGE=您无权进行此 API 调用 错误码=10002

似乎我记得这与未启用 Paypal PaymentsPro 有关。我尝试创建多个企业帐户并删除并重新实例化我的凭据。似乎没有任何效果,我在https://www.sandbox.paypal.com/ 站点中找不到任何地方启用它。信用卡是沙盒个人用户生成的假卡,但我也用企业账户的信用卡试了一下,没有任何区别。

谁能给我一些线索?这是令人沮丧的难以置信。

   <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
        xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/1999/XMLSchema"
        SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <SOAP-ENV:Header>
            <RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" SOAP-ENV:mustUnderstand="1">
                <Credentials xmlns="urn:ebay:apis:eBLBaseComponents">
                    <Username>business user from paypal sandbox</Username>
                    <Password>password from classic text api credentials</Password>
            <Signature>api from new paypal sandbox business user</Signature>
                    <Subject>email of new paypal sandbox business user</Subject>
                </Credentials>
            </RequesterCredentials>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>
            <DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI">
                <DoDirectPaymentRequest xmlns="urn:ebay:api:PayPalAPI">
                <Version xmlns="urn:ebay:apis:eBLBaseComponents">1.0</Version>
                <DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents">
        <PaymentAction>Sale</PaymentAction>
        <PaymentDetails>
            <OrderTotal currencyID="USD">50.00</OrderTotal>
            <ItemTotal currencyID="USD">50.00</ItemTotal>
            <ShippingTotal currencyID="USD">0.00</ShippingTotal>
            <HandlingTotal currencyID="USD">0.00</HandlingTotal>
            <TaxTotal currencyID="USD">0.00</TaxTotal>
            <OrderDescription>LOCAL - </OrderDescription>
            <Custom>LOCAL - </Custom>
            <InvoiceID>LOCAL - 1417</InvoiceID>
            <PaymentItem>
              <Name>Donation</Name>
              <Number>28</Number>
              <Quantity>1</Quantity>
              <SalesTax currencyID="USD">0</SalesTax>
              <Amount currencyID="USD">50.00</Amount>
            </PaymentItem>      </PaymentDetails>
        <CreditCard>
          <CreditCardType>Visa</CreditCardType>
          <CreditCardNumber>4892645783103844</CreditCardNumber>
          <ExpMonth>4</ExpMonth>
          <ExpYear>2018</ExpYear>
          <CardOwner>
            <Payer>john_test@testuser.org</Payer>
            <PayerID></PayerID>
            <PayerStatus>1</PayerStatus>
            <PayerName>
              <FirstName>Test</FirstName>
              <LastName>User</LastName>
            </PayerName>
            <PayerCountry>US</PayerCountry>
            <PayerBusiness></PayerBusiness>
            <Address><Name>Test User</Name>             
                    <Street1>5555 W 55th St</Street1>
                <Street2></Street2>
                <CityName>Somewhere</CityName>
                <StateOrProvince>IL</StateOrProvince>
                <Country>US</Country>
                <Phone>555-555-5555</Phone>
                <PostalCode>55555</PostalCode>
            </Address>
          </CardOwner>
          <CVV2>123</CVV2>
        </CreditCard>
        <IPAddress>my ip address</IPAddress>
        <MerchantSessionId>z78m9bsliz7b7f7</MerchantSessionId>
                    </DoDirectPaymentRequestDetails>
                </DoDirectPaymentRequest>
            </DoDirectPaymentReq>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

【问题讨论】:

    标签: soap paypal paypal-sandbox


    【解决方案1】:

    “用户名”和“主题”的值是否几乎完全匹配? (“_api1.”代替“@”)?

    如果它们不同并且这是有意的,您可能需要做的是以“主题”身份登录沙盒帐户并授予用户名的第 3 方 API 权限。

    如果它们没有区别,请尝试省略主题。如果这不会改变响应,您能否发布这些值?

    【讨论】:

    • 是的,他们这样做了,当我尝试过时(甚至在你的建议之前)它给了我错误You are logging into the account of the API caller of this transaction. Please change your login information and try again. 在玩弄配置之后,比如删除主题,我可以得到它给我另一个错误是 This transaction cannot be processed due to an invalid merchant configuration. 大量阅读/搜索意味着这是一个 Paypal 错误,他们的支付专业版没有正确启用。我找不到任何地方可以启用它。
    • 无效的商家配置通常意味着 Pro 未启用,是的。尝试在沙盒中创建一个新的企业帐户并使用该帐户的 USER/PWD/SIGNATURE 进行测试
    • 是的,我也试过了,但无济于事。最终,我不得不联系他们让他们为我启用它。太蹩脚了。
    【解决方案2】:
    猜你喜欢
    • 2013-05-25
    • 2014-08-20
    • 2020-05-06
    • 2014-08-17
    • 1970-01-01
    • 2019-09-03
    • 1970-01-01
    • 2016-02-06
    • 1970-01-01
    相关资源
    最近更新 更多