solidus_mp 0.3.3 → 0.3.4

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: d5ba5e31166fc4e806d4668796cc9e7ef3adfbbe7083a780512e73ad43600790
4
+ data.tar.gz: bd2744631da9aa66e8cdf2adf2b026c84ccfcb7d621725e7113c65eee625399d
5
5
  SHA512:
6
- metadata.gz: faf50651c94d20347741c1f827baa31e3b47705fb114fe4ead7e0783ea9772fc1672cf8f10e0c7a43f85471099a92b8f0203b25977eca81f643205bce64a9a45
7
- data.tar.gz: 253ade89915d96aef0695f5f7a81069d91f6399f69e40492303bbbeb87dd225441dc06a733955aeb485223599181ec8d4300b7f8c184ff9e374a885a7f448d80
6
+ metadata.gz: aaa56ecbb91b39abc1aca44b3d63c96997a199e3819fef78644d4a8aa98482e2d0f0ffc0c94abc2f51085af68d1736f61997b946f10c5f2797cdae143528c8ae
7
+ data.tar.gz: 0756e7ac7922ebcbed3e6baf2c4347e4674c0f59cf2895ad04038bc4226a91b9d615558a95c3527a9993d6aab3991bccd601c12ba9cff11e80ad1666760ebc18
@@ -25,7 +25,7 @@ module SolidusMp
25
25
  error_message = mp_payment.error || mp_payment.internal_error
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.4'
5
5
  end
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.4
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -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: ''