I am currently writing a code to call the REST API from jQuery to retrieve the results.
[What I want to do]
Use jQuery to access Paypal's following sandbox URL:
As for the result, the following string will be returned, so I would like to obtain it in jQuery.
ACK = Failure & L_ERRORCODE 0 = 81002 & L_SHORTMESSAGE 0 = Unspecified %20 Method & L_LONGMESSAGE 0 = Method %20 Specified %20is %20 Not %20 Supported & L_SEVERITYCODE 0 = Error
I wrote the following code with reference to the above documentation, but I couldn't get the response string, so I ended up in the function of the error.
Could someone please tell me what caused it?
Thank you for your cooperation.
In principle, js cannot read files on other servers. (Cross Domain Problem)
It is possible to obtain information by php and so on and receive it by js.
I'm sorry, but I think it's a fundamental problem with this question, but the endpoint of PayPal's REST API is
is called the NVP (classic) API.
The REST API requests and responses remain the same as JSON.
© 2022 OneMinuteCode. All rights reserved.