solidus_mp 0.1.2 → 0.1.3

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: a92f139bc94952294898e8429b8a9f1108383bdcc7f133bff16bbd48729c8afa
4
- data.tar.gz: f0d4b5c39e59879ea21b891cbe5301401eff848527eea9a6bb34fe799d409318
3
+ metadata.gz: c9cbe0419d92bfc532167ac7b8ace121e29371b1519f47b751e7273992de13bc
4
+ data.tar.gz: b93c4a4124fb859dad4fa1e157ad75a2141b916ff8ef247774f71b12fb454c65
5
5
  SHA512:
6
- metadata.gz: 07d84ca6d807d13eb35c7802aa46b8187b31e5c02b09e62dced1f024f91d56e0553ecd962e44a322b1ffd9ffdb366883d677a8c0d8f24dad55c96837ab577745
7
- data.tar.gz: 9364203529ea33840a93a6eb85440f150c0c1c41543bbd77c8744e7ef11eefdf7b6badbce57a121652693309e54eacae133cd0d8e919e9cc3d54066b6777d7e2
6
+ metadata.gz: 0643ef776ae30d0e5db1f7dbee36bc5a2a49461f03be67ad8c5fc60233ebb0b81d02299cd0256ffb2ce6a9104b0b0a3247a674b837f2f1f05931f0b25fd670ae
7
+ data.tar.gz: c6e903af6d4e1a1f4cb7129b424007ef7b8829d305b832793c7f78d6a301afa9848ce885a38af2c17a07816aeb2250713ac1af2fa4c7357e58eae93f6ea2c9cf
@@ -24,6 +24,8 @@ module SolidusMp
24
24
  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)
25
25
  rescue MpApi::TooManyRequestsError
26
26
  payment.invalidate
27
+ rescue MpApi::RequestError
28
+ payment.invalidate
27
29
  end
28
30
  end
29
31
 
@@ -24,6 +24,8 @@ module SolidusMp
24
24
  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)
25
25
  rescue MpApi::TooManyRequestsError
26
26
  payment.invalidate
27
+ rescue MpApi::RequestError
28
+ payment.invalidate
27
29
  end
28
30
  end
29
31
 
@@ -1,2 +1,2 @@
1
- <input type="text" name="payment_source[<%=payment_method.id%>][tax_id]" placeholder="CPF">
2
- <input type="text" name="payment_source[<%=payment_method.id%>][email]" placeholder="E-mail">
1
+ <input type="text" name="payment_source[<%=payment_method.id%>][tax_id]" placeholder="CPF" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
2
+ <input type="text" name="payment_source[<%=payment_method.id%>][email]" placeholder="E-mail" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusMp
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core