diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js b/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js index 0e300f9b..f773c05b 100755 --- a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js +++ b/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js @@ -55,8 +55,8 @@ var PaymentView = FormView.extend({ if (this.cc.data && this.cc.data.Guid) { sdk.payment.delete_credit_card({ guid: this.cc.data.Guid, - success: function(){}, - error: function(){}, + success: function(){ console.log("deleted credit card") }, + error: function(){ console.log("error deleting credit card") }, }) } @@ -72,12 +72,18 @@ var PaymentView = FormView.extend({ success: function(data){ app.curtain.show("loading") - app.account.listAddresses(function(){ - app.curtain.hide("loading") + app.account.listAddresses({ + success: function(){ + app.curtain.hide("loading") + }, + error: function(){ + app.curtain.hide("loading") + }, }) }, error: function(data){ + console.log("ERROR WITH PAYMENT") console.log(data) }, |
