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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31fc3c85a8c91289b08086e4014a342e7e1286392084d201777af477d04c2527
4
- data.tar.gz: a0dfb2d47a50c2ddf4fb97b7c2ddee2d946c4b850047014c95e4940843771c9e
3
+ metadata.gz: d4a19f18fd41efae6442d56239c139dcdf4677d1b7f8ca8f4e060ffb375359ab
4
+ data.tar.gz: e9bf835e4c58a59ee2cd8bbf09612932280c2b1b6f754e91cacaf742340db6be
5
5
  SHA512:
6
- metadata.gz: b4356567d6cea5573bf2dff86f31bb1e7b127fb9358ec2e9fb134f026cd1fe1c0ef168e072de1d75d9a7e7289166fa9e05cb495233b0e29eb6445fdf0e75188b
7
- data.tar.gz: 5950fd9cf46beece7118ef322ab4cba7b6b53397c21c3b2f53ba5c790e7063e8b434e0c0a34132397ac569088a8f46c27b601638e92165784135ebed8b3ba0e3
6
+ metadata.gz: 12f76424dc4b8debb1b511a0d9b6b3f4a9ced6f33c06799c00803170e91b014c71ed83140a0ef82818d1686ab6cd76f9b58019dd5649c454881d56c2e9357717
7
+ data.tar.gz: 1e37cd9fd30a5f95051e55b39585de952c3a4b466bd608793a13c86fb3f48829d880f40b7559a1988511b8590ef3bef2eb65b9c22882e613421e0f393d0541a8
@@ -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],
@@ -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
@@ -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],
@@ -1,3 +1,3 @@
1
1
  module PayU
2
- VERSION = "1.0.4".freeze
2
+ VERSION = "1.0.5".freeze
3
3
  end
@@ -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])
@@ -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])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payu-latam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slang