Skip to content

Instantly share code, notes, and snippets.

View etsms's full-sized avatar

Elavon Payments etsms

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@etsms
etsms / Hosted-Transvault-Sample.html
Last active May 23, 2017 14:51
Sample Hosted Payments with App Scheme
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/etsms/hosted-payments@3.8.5/dist/jquery.hosted-payments.min.css">
<script src="https://cdn.jsdelivr.net/gh/jquery/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/etsms/hosted-payments@3.8.5/dist/jquery.hosted-payments.min.js"></script>
</head>
@etsms
etsms / ajax.js
Last active April 3, 2017 19:03 — forked from rmruano/Cross-browser XHR for CORS requests
Simple Cross-browser XHR request with Cors support. Supported by any moder browser and IE>=8.
function ajax(type, url, data, callback) {
var xhr = new(this.XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
var req = [];
for(var item in data) {
req.push(encodeURIComponent(item) + "=" + encodeURIComponent(data[item]));
}
data = req.join("&");