solidus_mp 0.3.3 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc5769094a8fd0753cde88b796f0dac68f9980ae3ec9ac2a1e666f5862af4bc2
4
- data.tar.gz: da8d80ce3d9d6526f091cf74ed88a71b2b4d553eee881d8a3c4f8963ea830342
3
+ metadata.gz: cef0f755b4ab80066b91807e811ed579ea52bb59745616a478bef4d20814fcfb
4
+ data.tar.gz: 826957755087e298309cc41aaef64b9d3bb7085804feb08d1cd67ecab2e65a69
5
5
  SHA512:
6
- metadata.gz: faf50651c94d20347741c1f827baa31e3b47705fb114fe4ead7e0783ea9772fc1672cf8f10e0c7a43f85471099a92b8f0203b25977eca81f643205bce64a9a45
7
- data.tar.gz: 253ade89915d96aef0695f5f7a81069d91f6399f69e40492303bbbeb87dd225441dc06a733955aeb485223599181ec8d4300b7f8c184ff9e374a885a7f448d80
6
+ metadata.gz: e6e79043acd0699682e1feba07d2d39a5fbcf22259b9acacf54698eb26efa89163fce7f1a531090adea6eb64ff4bcc05db388443e7f66d51beda9757ccd2425e
7
+ data.tar.gz: d2f58ca88360e1b9d74003c826d7808e0cabb16eaa550377d76d473370ba7c15df4776a9ce9edd8dad36ebb7a6952deb5168042e67e54d6ccfa347dba9618989
@@ -22,10 +22,10 @@ module SolidusMp
22
22
  payment.source.update(external_id: mp_payment.id, three_ds_url: mp_payment.three_ds_info_external_resource_url, three_ds_creq: mp_payment.three_ds_info_creq)
23
23
  if mp_payment.error || mp_payment.internal_error
24
24
  payment.invalidate
25
- error_message = mp_payment.error || mp_payment.internal_error
25
+ error_message = "#{mp_payment.error || mp_payment.internal_error} (#{mp_payment.status_detail})"
26
26
  response = failure_response(error_message)
27
27
  payment.log_entries.create!(parsed_payment_response_details_with_fallback: response)
28
- payment.source.update(error_message: mp_payment.error, status: "error")
28
+ payment.source.update(error_message: mp_payment.error || "Ocorreu um erro ao criar o pagamento.", status: "error")
29
29
  elsif mp_payment.status == "approved"
30
30
  payment.complete
31
31
  payment.source.update(status: "success")
@@ -24,7 +24,7 @@ module SolidusMp
24
24
  error_message = mp_payment.error || mp_payment.internal_error
25
25
  response = failure_response(error_message)
26
26
  payment.log_entries.create!(parsed_payment_response_details_with_fallback: response)
27
- payment.source.update(error_message: mp_payment.error, status: "error")
27
+ payment.source.update(error_message: mp_payment.error || "Ocorreu um erro ao criar o pagamento.", status: "error")
28
28
  elsif mp_payment.status == "pending"
29
29
  payment.source.update(external_id: mp_payment.id, qr_code: mp_payment.qr_code, qr_code_base64: mp_payment.qr_code_base_64, ticket_url: mp_payment.ticket_url, status: "pending")
30
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusMp
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.5'
5
5
  end
data/solidus_mp.gemspec CHANGED
@@ -10,12 +10,12 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = ''
12
12
  spec.description = ''
13
- spec.homepage = 'https://github.com/CaioGarcia1/'
13
+ spec.homepage = 'https://github.com/CaioGarcia1/solidus_mp'
14
14
  spec.license = 'BSD-3-Clause'
15
15
 
16
16
  spec.metadata['homepage_uri'] = spec.homepage
17
- spec.metadata['source_code_uri'] = 'https://github.com/CaioGarcia1/'
18
- spec.metadata['changelog_uri'] = 'https://github.com/CaioGarcia1/'
17
+ spec.metadata['source_code_uri'] = 'https://github.com/CaioGarcia1/solidus_mp'
18
+ spec.metadata['changelog_uri'] = 'https://github.com/CaioGarcia1/solidus_mp'
19
19
 
20
20
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5', '< 4')
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-10 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -132,13 +132,13 @@ files:
132
132
  - spec/models/solidus_mp/card_payment_source_spec.rb
133
133
  - spec/models/solidus_mp/pix_payment_source_spec.rb
134
134
  - spec/spec_helper.rb
135
- homepage: https://github.com/CaioGarcia1/
135
+ homepage: https://github.com/CaioGarcia1/solidus_mp
136
136
  licenses:
137
137
  - BSD-3-Clause
138
138
  metadata:
139
- homepage_uri: https://github.com/CaioGarcia1/
140
- source_code_uri: https://github.com/CaioGarcia1/
141
- changelog_uri: https://github.com/CaioGarcia1/
139
+ homepage_uri: https://github.com/CaioGarcia1/solidus_mp
140
+ source_code_uri: https://github.com/CaioGarcia1/solidus_mp
141
+ changelog_uri: https://github.com/CaioGarcia1/solidus_mp
142
142
  post_install_message:
143
143
  rdoc_options: []
144
144
  require_paths:
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.4.6
160
+ rubygems_version: 3.4.19
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: ''