summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js
index ab454246..a19e69a5 100755
--- a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js
+++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js
@@ -44,6 +44,7 @@ var CartPayment = FormView.extend({
app.footer.show("CONFIRM >")
window.location.hash = "#/cart/payment"
+ app.view = this
this.populate()
this.deferScrollToTop()
},
@@ -138,7 +139,9 @@ var CartPayment = FormView.extend({
this.success()
}.bind(this)).error(function(data){
app.curtain.hide("loading")
+ console.log("card payment error")
console.log(data)
+ app.cart.payment.show_errors([["","There was a problem with your credit card."]])
}.bind(this))
return
@@ -173,6 +176,7 @@ var CartPayment = FormView.extend({
},
error: function(data){
+ console.log("card payment error")
console.log(data)
app.cart.payment.show_errors([["Number","There was a problem with your credit card."]])
},
@@ -181,5 +185,4 @@ var CartPayment = FormView.extend({
app.router.go('cart/shipping')
},
-
}) \ No newline at end of file