mundipagg 1.3.0 → 1.3.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eff638b17781813199b2dfe7d25beba303baac0a
|
|
4
|
+
data.tar.gz: 04cc197003b40df4efa9927becff6aa52fe9cf68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84622e17da97110b348ffb17353369d421b5ef1a135d6a1e37039e39f1cb8773834cbcde3cf1d7db90430d7abb0c6f5feb77a55990da39b8e7372796eb59e096
|
|
7
|
+
data.tar.gz: 13402994cbb62c3fec40c8cef0639420f68026dc526f83492a5872eda870cdda7570e0f69b6b769f358e5e3860518efb6cef3d08b0cd16abc706c0319fcbb2ef
|
data/lib/mundipagg/gateway.rb
CHANGED
|
@@ -134,7 +134,13 @@ module Mundipagg
|
|
|
134
134
|
xml_hash = hash['tns:createOrderRequest'];
|
|
135
135
|
|
|
136
136
|
xml_hash['mun:AmountInCents'] = request.amountInCents
|
|
137
|
-
|
|
137
|
+
|
|
138
|
+
if request.amountInCentsToConsiderPaid == nil
|
|
139
|
+
xml_hash['mun:AmountInCentsToConsiderPaid'] = request.amountInCents
|
|
140
|
+
else
|
|
141
|
+
xml_hash['mun:AmountInCentsToConsiderPaid'] = request.amountInCentsToConsiderPaid
|
|
142
|
+
end
|
|
143
|
+
|
|
138
144
|
xml_hash['mun:CurrencyIsoEnum'] = request.currencyIsoEnum
|
|
139
145
|
xml_hash['mun:MerchantKey'] = request.merchantKey
|
|
140
146
|
xml_hash['mun:OrderReference'] = request.orderReference
|
data/lib/mundipagg/version.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Before do
|
|
4
4
|
|
|
5
5
|
@client = Mundipagg::Gateway.new :test
|
|
6
|
-
@client.log_level = :
|
|
6
|
+
@client.log_level = :debug
|
|
7
7
|
@order = Mundipagg::CreateOrderRequest.new
|
|
8
8
|
@order.merchantKey = TestConfiguration::Merchant::MerchantKey
|
|
9
9
|
@transaction = Mundipagg::CreditCardTransaction.new
|
data/tests/test_configuration.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mundipagg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MundiPagg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|