Created
November 1, 2015 16:41
-
-
Save ShreyKumar/05773a67bde206d655ff to your computer and use it in GitHub Desktop.
This file contains 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
$(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