summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/payment.js
diff options
context:
space:
mode:
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: {