This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var addEvent = (function () { | |
var filter = function(el, type, fn) { | |
for ( var i = 0, len = el.length; i < len; i++ ) { | |
addEvent(el[i], type, fn); | |
} | |
}; | |
if ( document.addEventListener ) { | |
return function (el, type, fn) { | |
if ( el && el.nodeName || el === window ) { | |
el.addEventListener(type, fn, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = function(url, success) { | |
if ('XDomainRequest' in window) { | |
var xdr = new XDomainRequest(); | |
xdr.onload = function() { | |
alert(xdr.responseText); | |
success(JSON.parse(xdr.responseText)); | |
}; | |
xdr.open('GET', url); | |
xdr.send(null); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var | |
// Custom data types - will only check here if type is object | |
dataTypes = {} | |
// Holds mappings to actual data types | |
, shortHands = { | |
s: "string" | |
, b: "boolean" | |
, n: "number" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Sign In | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Create Payment Instrument | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Capture | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Charge | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Http Post | |
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters | |
* Method: Refund | |
*/ | |
/* | |
* Request Body | |
*/ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is some text ! |
OlderNewer