Our library comes bundled with some functions to aide in AJAX calls. The libray is located at window.paypal.request. For the most up to date information look at the source code
The options for the Http library are located on the RequestOptionsType type.
The following helper methods are exposed for you to use
Sends an XHR GET request to the url given. Options will override the RequestOptionsType with any properties you give it.
Sends an XHR POST request to the url given with the given data. Options will override the RequestOptionsType with any properties you give it.