"Version not supported" in SOAP Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I want to access paypal api with soap. Therefore I want to use gsoap with C++. Are there any alternatives? Because gSoap is not so well documented.
The simples approach for me is now, to do simple test requests. This gives „success“ back:
"curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=mi-dick_api1.gmx.de \
-d PWD=XXXXXXXXXXXXXXX \
-d SIGNATURE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
-d METHOD=SetExpressCheckout \
-d VERSION=98 \
-d PAYMENTREQUEST_0_AMT=10 \
-d PAYMENTREQUEST_0_CURRENCYCODE=USD \
-d PAYMENTREQUEST_0_PAYMENTACTION=SALE \
-d cancelUrl=https://example.com/cancel \
-d returnUrl=https://example.com/success"
TOKEN=EC%2d8PR459601E5516846&TIMESTAMP=2017%2d11%2d11T11%3a44%3a00Z&CORRELATIONID=df58fa2de669&ACK=Success&VERSION=98&BUILD=40680762%
When I want to do a request with curl, I use this command, using the request-xml generated from wsdl.
'curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:ns1:GetBalanceReq" --data ATPayPalAPISoapBinding.GetBalance.req-Dev.xml https://api-3t.sandbox.paypal.com/2.0/'
(Had to replace the @ after --data)
I get this error:
"Version is not supported"
I even tried several different Versions (88, 95, 204 as descirbe here: https://github.com/ianfleeton/paypal-express/commit/cebd62f02966f74a8aa3ece5d1793be9327048a0)
But no success. Any hints, what I am doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The newest version of NVP/SOAP API is Version 204.
There are certain API Operations that are no longer supported, which can cause a version not supported error message as well.
Here is a listing of API Operations and what versions do not support them:
Here is the documentation on the SOAP SetExpressCheckout API Operation.
Thanks,
Jennifer
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Platform Marketplace integration approval in Sandbox Environment
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- PayPal Pay Links and buttons in PayPal Payments Standard