gpt4 book ai didi

soap - 您无权使用 SOAP for DoDirectPaymentReq 进行此 API 调用

转载 作者:太空宇宙 更新时间:2023-11-03 16:12:39 24 4
gpt4 key购买 nike

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

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

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>

最佳答案

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

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

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

关于soap - 您无权使用 SOAP for DoDirectPaymentReq 进行此 API 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15817839/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com