caboose-cms 0.5.150 → 0.5.151
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDg5YjIzMDA3ZDMwMjhhMTQxMDRmYTMwNDkwNjIxNTQzYzljMzk3ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDVmY2Q0OTE3OTI0ODJiYzI3ZGJkNTAyMWRlODhkMzZkOGQwNjhmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDA4ZGE4Y2VkZGY5NjE5OGYyMTk1YWFhN2E4OGFhYjhlYzE3MzZlMzMxYzEy
|
10
|
+
MzFlNjg2OTczODViYzRjMGEzMjVlYTgxNzU0YmVmYWY3MmUxZjY4ZmFhOTI3
|
11
|
+
NDYzMDAwZGYyOWNlN2E1MDY2Y2YzNmEwNmU4NmM1ZjAzODg4YjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjY4M2E4NzgxY2UzYmQ4YmIzY2JkNmU1NGQ0MGY2NDNkYzYxMjZlMWQxYWM2
|
14
|
+
NGY2ZjliY2E0YWFmMGMwN2Y5NzkyNGI3ZjQ3YWEyN2YyZjNhZjhhYjM5NGE0
|
15
|
+
ZGVmNWUzZDg5MTc0MzI3OTliY2IxZWM1YWQ4Yjg1ZWU2ZGEwZTc=
|
@@ -704,8 +704,8 @@ OrderController.prototype = {
|
|
704
704
|
url: '/admin/orders/' + that.order.id + '/void',
|
705
705
|
success: function(resp) {
|
706
706
|
if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
|
707
|
-
if (resp.success) that.refresh();
|
708
|
-
if (resp.refresh) that.refresh();
|
707
|
+
if (resp.success) { $('#message').empty(); that.refresh(); }
|
708
|
+
if (resp.refresh) { $('#message').empty(); that.refresh(); }
|
709
709
|
}
|
710
710
|
});
|
711
711
|
},
|
@@ -716,7 +716,7 @@ OrderController.prototype = {
|
|
716
716
|
if (!confirm)
|
717
717
|
{
|
718
718
|
var p = $('<p/>').addClass('note confirm')
|
719
|
-
.append("Are you sure you want to charge " + that.order.total + " to the customer? ")
|
719
|
+
.append("Are you sure you want to charge $" + parseFloat(that.order.total).toFixed(2) + " to the customer? ")
|
720
720
|
.append($('<input/>').attr('type','button').val('Yes').click(function() { that.capture_funds(true); }))
|
721
721
|
.append(' ')
|
722
722
|
.append($('<input/>').attr('type','button').val('No').click(function() { $('#message').empty(); }));
|
@@ -728,8 +728,8 @@ OrderController.prototype = {
|
|
728
728
|
url: '/admin/orders/' + that.order.id + '/capture',
|
729
729
|
success: function(resp) {
|
730
730
|
if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
|
731
|
-
if (resp.success) that.refresh();
|
732
|
-
if (resp.refresh) that.refresh();
|
731
|
+
if (resp.success) { $('#message').empty(); that.refresh(); }
|
732
|
+
if (resp.refresh) { $('#message').empty(); that.refresh(); }
|
733
733
|
}
|
734
734
|
});
|
735
735
|
}
|
@@ -79,11 +79,10 @@ module Caboose
|
|
79
79
|
when 'authorize.net'
|
80
80
|
transaction = AuthorizeNet::AIM::Transaction.new(sc.pp_username, sc.pp_password)
|
81
81
|
response = transaction.prior_auth_capture(t.transaction_id, order.total)
|
82
|
-
|
83
|
-
|
82
|
+
|
84
83
|
order.update_attribute(:financial_status, Order::FINANCIAL_STATUS_CAPTURED)
|
85
84
|
resp.success = 'Captured funds successfully'
|
86
|
-
|
85
|
+
|
87
86
|
ot = Caboose::OrderTransaction.new(
|
88
87
|
:order_id => order.id,
|
89
88
|
:date_processed => DateTime.now.utc,
|
data/lib/caboose/version.rb
CHANGED