diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-07 17:03:58 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-07 17:03:58 +0100 |
| commit | 89b2dd78571b26d09af1f9f820abfaeba3c864ba (patch) | |
| tree | 70c5b40af998f70fbff01da55a89907460e51963 /StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js | |
| parent | 3bd704dd83f55a038b1eac699ecdf1fa3bbf8123 (diff) | |
curtain
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) }, |
