summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/account/PaymentView.js14
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)
},