solidus_mp_dois 0.0.8 → 0.0.10

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: 80632d9a2c759f03cf46cb691b62c9f6380a8f3de086afc0bac0065dae6798bc
4
- data.tar.gz: f2ca611c4acd8111af809827072018f57e04c3e2bbebf5fc9f580e05450ccf70
3
+ metadata.gz: 178259d38b6413449dc7d4f0df785f248e9ac579fcdbf428cc56882a00a20e6f
4
+ data.tar.gz: fecdeef3e4935aef13b13e15a888068c87c6bb6748643087a7b031ccbb7e2cb2
5
5
  SHA512:
6
- metadata.gz: 0f1ee67012256432f4dcb026afb340bddb9fce91374c63d28a08b4d701f0f473d1d9d0b8b176a73b66c08ec98f42969628c9603387c0311e913f4b543e16b198
7
- data.tar.gz: '094ec31b037a3e266374449e930dc17e98201d043753baa0b485ad219baaa4ab253f5eefbd73f613b521b5087d0b3aa85ae54846df768d06b1cd7c9a9aedd4ee'
6
+ metadata.gz: 85b065cda5275d9cce69b05a549c5ab4433b141632b490839e6df32936bdbe2d65cc7c5cfd2cb0e1567cc5051d883c759a9bbbde94505308b741b835ab4e6453
7
+ data.tar.gz: c3d92e0d9eee8ccede549f39584487c2d7742227ec65225db701b7d2b5d5c257ae5e4b2c660426549cc6479a6b3a7a12dfd7d7c3fb427d4cd580937dbe69735b
@@ -135,7 +135,7 @@ module SolidusMpDois
135
135
  three_ds_creq: mp_payment.three_ds_info_creq,
136
136
  last_four_digits: mp_payment.last_four_digits
137
137
  )
138
- if mp_payment.error || mp_payment.internal_error
138
+ if mp_payment.id.blank? || mp_payment.error || mp_payment.internal_error
139
139
  handle_payment_error(payment, mp_payment)
140
140
  else
141
141
  payment.order.update(email: payment.source.email)
@@ -1,2 +1,5 @@
1
- json.call(payment_source, :id, :external_id, :tax_id, :email, :status, :card_brand, :installments,
2
- :last_four_digits)
1
+ if payment_source.respond_to?(:card_brand)
2
+ json.call(payment_source, :id, :external_id, :tax_id, :email, :status, :card_brand, :installments, :last_four_digits)
3
+ else
4
+ json.call(payment_source, :id, :external_id, :tax_id, :email, :status, :credit_card_brand, :installments, :last_four_digits)
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp_dois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_brazilian_adaptations