Skip to content

Instantly share code, notes, and snippets.

@ShreyKumar
Created November 1, 2015 16:41
Show Gist options
  • Save ShreyKumar/05773a67bde206d655ff to your computer and use it in GitHub Desktop.
Save ShreyKumar/05773a67bde206d655ff to your computer and use it in GitHub Desktop.
$(document).ready(function(){
var data = {
medium: "balance",
payee_id: "56241a13de4bf40b17112926",
transaction_date: "31/10/15",
status: "pending",
description: "fdsfdsfds",
amount: 1
}
//detuct amount
$.ajax({
method: "POST",
dataType: "json",
contentType: "application/json",
url: "http://api.reimaginebanking.com/accounts/56241a13de4bf40b17112927/transfers?key=3cdb9c7676cdd3b9c000cbb9b5d94bdd",
data: JSON.stringify(data)
}).done(function( msg ) {
alert("Amount transfered!");
}).error(function(msg){
console.log(msg);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment