payu-latam 1.0.4 → 1.0.5
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/pay_u/confirmation.rb +1 -0
- data/lib/pay_u/order.rb +1 -0
- data/lib/pay_u/response.rb +1 -0
- data/lib/pay_u/version.rb +1 -1
- data/spec/pay_u/confirmation_spec.rb +1 -0
- data/spec/pay_u/response_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a19f18fd41efae6442d56239c139dcdf4677d1b7f8ca8f4e060ffb375359ab
|
4
|
+
data.tar.gz: e9bf835e4c58a59ee2cd8bbf09612932280c2b1b6f754e91cacaf742340db6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f76424dc4b8debb1b511a0d9b6b3f4a9ced6f33c06799c00803170e91b014c71ed83140a0ef82818d1686ab6cd76f9b58019dd5649c454881d56c2e9357717
|
7
|
+
data.tar.gz: 1e37cd9fd30a5f95051e55b39585de952c3a4b466bd608793a13c86fb3f48829d880f40b7559a1988511b8590ef3bef2eb65b9c22882e613421e0f393d0541a8
|
data/lib/pay_u/confirmation.rb
CHANGED
@@ -17,6 +17,7 @@ class PayU::Confirmation
|
|
17
17
|
status_code: params[:state_pol].to_i,
|
18
18
|
response_code: params[:response_code_pol].to_i,
|
19
19
|
response_message: params[:response_message_pol],
|
20
|
+
payment_method: params[:payment_method_name],
|
20
21
|
payment_method_code: params[:payment_method_type].to_i,
|
21
22
|
email: params[:email_buyer],
|
22
23
|
transaction_id: params[:transaction_id],
|
data/lib/pay_u/order.rb
CHANGED
@@ -17,6 +17,7 @@ class PayU::Order
|
|
17
17
|
attribute :status_code, Integer
|
18
18
|
attribute :response_code, Integer
|
19
19
|
attribute :response_message, String
|
20
|
+
attribute :payment_method, String
|
20
21
|
attribute :payment_method_code, Integer
|
21
22
|
attribute :email, String
|
22
23
|
attribute :transaction_id, String
|
data/lib/pay_u/response.rb
CHANGED
@@ -17,6 +17,7 @@ class PayU::Response
|
|
17
17
|
status_code: params[:transactionState].to_i,
|
18
18
|
response_code: params[:polResponseCode].to_i,
|
19
19
|
response_message: params[:lapResponseCode],
|
20
|
+
payment_method: params[:lapPaymentMethod],
|
20
21
|
payment_method_code: params[:polPaymentMethodType].to_i,
|
21
22
|
email: params[:buyerEmail],
|
22
23
|
transaction_id: params[:transactionId],
|
data/lib/pay_u/version.rb
CHANGED
@@ -10,6 +10,7 @@ RSpec.describe PayU::Confirmation do
|
|
10
10
|
expect(confirmation.order.reference_code).to eq(Fixtures.confirmation[:reference_sale])
|
11
11
|
expect(confirmation.order.transaction_id).to eq(Fixtures.confirmation[:transaction_id])
|
12
12
|
expect(confirmation.order.response_message).to eq("APPROVED")
|
13
|
+
expect(confirmation.order.payment_method).to eq("VISA")
|
13
14
|
expect(confirmation.order.extra_1).to eq(Fixtures.confirmation[:extra1])
|
14
15
|
expect(confirmation.order.extra_2).to eq(Fixtures.confirmation[:extra2])
|
15
16
|
expect(confirmation.order.extra_3).to eq(Fixtures.confirmation[:extra3])
|
data/spec/pay_u/response_spec.rb
CHANGED
@@ -10,6 +10,7 @@ RSpec.describe PayU::Response do
|
|
10
10
|
expect(response.order.reference_code).to eq(Fixtures.response[:referenceCode])
|
11
11
|
expect(response.order.transaction_id).to eq(Fixtures.response[:transactionId])
|
12
12
|
expect(response.order.response_message).to eq("APPROVED")
|
13
|
+
expect(response.order.payment_method).to eq("VISA")
|
13
14
|
expect(response.order.extra_1).to eq(Fixtures.response[:extra1])
|
14
15
|
expect(response.order.extra_2).to eq(Fixtures.response[:extra2])
|
15
16
|
expect(response.order.extra_3).to eq(Fixtures.response[:extra3])
|