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 +4 -4
- data/app/models/solidus_mp/mp_card.rb +1 -1
- data/app/models/solidus_mp/mp_pix.rb +1 -1
- data/lib/solidus_mp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5ba5e31166fc4e806d4668796cc9e7ef3adfbbe7083a780512e73ad43600790
|
4
|
+
data.tar.gz: bd2744631da9aa66e8cdf2adf2b026c84ccfcb7d621725e7113c65eee625399d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/solidus_mp/version.rb
CHANGED
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.
|
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-
|
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.
|
160
|
+
rubygems_version: 3.4.19
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: ''
|