offsite_payments 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/offsite_payments/integrations/payu_in.rb +2 -1
- data/lib/offsite_payments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87c7fc8d1a740a6e961414c6d7ff75aa9c329164
|
|
4
|
+
data.tar.gz: 02dadce5d17d6cd2b7805fc6e42ebe23fc7c2306
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8cadc83a386bdd0b9851f373a0a743f73618180e944caeabfa6f39d518d2b992da8c40489a3ab0edb21e65bb1796b509f1d67d113988a56bbe17b22880bf35a
|
|
7
|
+
data.tar.gz: aae420cc67d1a0c7e943ccf989203b81423860b81e8f9d2d3209a4f7172d7c14b54ae6febfb50842fd3615054eb47a81dfa72a5d0d862b538294dd31e3c3dae0
|
|
@@ -117,7 +117,8 @@ module OffsitePayments #:nodoc:
|
|
|
117
117
|
|
|
118
118
|
# Order amount should be equal to gross - discount
|
|
119
119
|
def amount_ok?( order_amount, order_discount = BigDecimal.new( '0.0' ) )
|
|
120
|
-
|
|
120
|
+
parsed_discount = discount.nil? ? 0.to_d : discount.to_d
|
|
121
|
+
BigDecimal.new( original_gross ) == order_amount && parsed_discount == order_discount
|
|
121
122
|
end
|
|
122
123
|
|
|
123
124
|
# Status of transaction return from the PayU. List of possible values:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: offsite_payments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tobias Luetke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|