summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/payment.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-08 19:32:08 -0500
committerJules Laplace <jules@okfoc.us>2015-11-08 19:32:19 -0500
commit069e15c10ed10b45673c2365f78fe8918753f19d (patch)
treeb6e64d1f31f8c4390415efe186116479ef657fb9 /StoneIsland/www/js/sdk/payment.js
parentaa23fc23b5a8cf43d115bcf3953806e66dadf1c3 (diff)
use jqxhr style callbacks
Diffstat (limited to 'StoneIsland/www/js/sdk/payment.js')
-rw-r--r--StoneIsland/www/js/sdk/payment.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/js/sdk/payment.js b/StoneIsland/www/js/sdk/payment.js
index 048cde4b..0076fbf8 100644
--- a/StoneIsland/www/js/sdk/payment.js
+++ b/StoneIsland/www/js/sdk/payment.js
@@ -2,7 +2,7 @@ sdk.payment = (function(){
var payment = {}
payment.list_credit_cards = function(opt){
- $.ajax({
+ return $.ajax({
method: "GET",
url: sdk.path("Account.API/1.5", "users/" + auth.user_id + "/cards.json"),
headers: {
@@ -19,7 +19,7 @@ sdk.payment = (function(){
}
payment.add_credit_card = function(opt){
- $.ajax({
+ return $.ajax({
method: "POST",
url: sdk.path("Account.API/1.5", "users/" + auth.user_id + "/cards.json"),
headers: {
@@ -36,7 +36,7 @@ sdk.payment = (function(){
}
payment.delete_credit_card = function(opt){
- $.ajax({
+ return $.ajax({
method: "DELETE",
url: sdk.path("Account.API/1.5", "users/" + auth.user_id + "/cards/" + opt.guid + ".json"),
headers: {
@@ -52,7 +52,7 @@ sdk.payment = (function(){
}
payment.get_payment_types = function(opt){
- $.ajax({
+ return $.ajax({
method: "GET",
url: sdk.path("Cart.API/1.6", "availablePaymentTypes.json"),
headers: {