solidus_mp_dois 0.0.10 → 0.0.12

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: 178259d38b6413449dc7d4f0df785f248e9ac579fcdbf428cc56882a00a20e6f
4
- data.tar.gz: fecdeef3e4935aef13b13e15a888068c87c6bb6748643087a7b031ccbb7e2cb2
3
+ metadata.gz: 74e7c22a9ffdc640e96a03feaa6c0861e27bbb9dca376665a0712728a322374b
4
+ data.tar.gz: 034cedccb5784dc40a60d1380c65af9605b620b0d97acfe043b05a6d3c18a8ad
5
5
  SHA512:
6
- metadata.gz: 85b065cda5275d9cce69b05a549c5ab4433b141632b490839e6df32936bdbe2d65cc7c5cfd2cb0e1567cc5051d883c759a9bbbde94505308b741b835ab4e6453
7
- data.tar.gz: c3d92e0d9eee8ccede549f39584487c2d7742227ec65225db701b7d2b5d5c257ae5e4b2c660426549cc6479a6b3a7a12dfd7d7c3fb427d4cd580937dbe69735b
6
+ metadata.gz: 9c407881be2d45eee817d5eb092d9594f61d009e0bce234ce77cdb130116d635bdae77b335ace42d103dbf1e8906ae69887980825ce78d718ccfb6d49193f08f
7
+ data.tar.gz: b6071db18ddd76e2acbf53e37cb18590a600df4c8d72206d53a7c5e7f962a4dbdb294cad80474c67f5b90187d83b5ea5048b937757a86cdc2e95db771bda9746
@@ -1 +1,58 @@
1
- ID do pagamento: <%= payment.source.external_id %>
1
+ <div class="content-wrapper">
2
+ <fieldset class="no-border-top">
3
+ <legend>
4
+ Pagamento Cartão de Crédito Mercado Pago
5
+ </legend>
6
+ <div class="row">
7
+ <div class="col-12 col-md-6">
8
+
9
+ <div class="field">
10
+ <%= label_tag :external_id, "ID" %>
11
+ <%= text_field_tag :txid, payment.source.external_id, class:"fullwidth", disabled: true %>
12
+ </div>
13
+
14
+ <div class="field">
15
+ <%= label_tag :email, "Email" %>
16
+ <%= text_field_tag :email, payment.source.email, class:"fullwidth", disabled: true %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= label_tag :last_four_digits, "4 últimos dígitos" %>
21
+ <%= text_field_tag :last_four_digits, payment.source.last_four_digits, class:"fullwidth", disabled: true %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= label_tag :amount, "Valor" %>
26
+ <%= text_field_tag :amount, number_to_currency(payment.source.amount), class:"fullwidth", disabled: true %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= label_tag :expiration, "Criação" %>
31
+ <%= text_field_tag :expiration, payment.source.created_at.in_time_zone('America/Sao_Paulo').strftime("%d/%m/%Y às %H:%M"), class:"fullwidth", disabled: true %>
32
+ </div>
33
+ </div>
34
+
35
+ <div class="col-12 col-md-6">
36
+ <div class="field">
37
+ <%= label_tag :status, "Status" %>
38
+ <%= text_field_tag :status, payment.source.status, class:"fullwidth", disabled: true %>
39
+ </div>
40
+
41
+ <div class="field">
42
+ <%= label_tag :tax_id, payment.source.payer_identification_type %>
43
+ <%= text_field_tag :tax_id, payment.source.tax_id, class:"fullwidth", disabled: true %>
44
+ </div>
45
+
46
+ <div class="field">
47
+ <%= label_tag :card_brand, "Bandeira" %>
48
+ <%= text_field_tag :card_brand, payment.source.card_brand.upcase, class:"fullwidth", disabled: true %>
49
+ </div>
50
+
51
+ <div class="field">
52
+ <%= label_tag :installments, "Parcelas" %>
53
+ <%= text_field_tag :installments, payment.source.installments, class:"fullwidth", disabled: true %>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </fieldset>
58
+ </div>
@@ -1 +1,59 @@
1
- ID do pagamento: <%= payment.source.external_id %>
1
+ <div class="content-wrapper">
2
+ <fieldset class="no-border-top">
3
+ <legend>
4
+ Pagamento Mercado Pago Pix
5
+ </legend>
6
+ <div class="row">
7
+ <div class="col-12 col-md-6">
8
+
9
+ <div class="field">
10
+ <%= label_tag :external_id, "ID" %>
11
+ <%= text_field_tag :txid, payment.source.external_id, class:"fullwidth", disabled: true %>
12
+ </div>
13
+
14
+ <div class="field">
15
+ <%= label_tag :email, "Email" %>
16
+ <%= text_field_tag :email, payment.source.email, class:"fullwidth", disabled: true %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= label_tag :expiration, "Criação" %>
21
+ <%= text_field_tag :expiration, payment.source.created_at.in_time_zone('America/Sao_Paulo').strftime("%d/%m/%Y às %H:%M"), class:"fullwidth", disabled: true %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= label_tag :amount, "Valor" %>
26
+ <%= text_field_tag :amount, number_to_currency(payment.source.amount), class:"fullwidth", disabled: true %>
27
+ </div>
28
+ </div>
29
+
30
+ <div class="col-12 col-md-6">
31
+ <div class="field">
32
+ <%= label_tag :status, "Status" %>
33
+ <%= text_field_tag :status, payment.source.status, class:"fullwidth", disabled: true %>
34
+ </div>
35
+
36
+ <div class="field">
37
+ <%= label_tag :tax_id, "Documento" %>
38
+ <%= text_field_tag :tax_id, payment.source.tax_id, class:"fullwidth", disabled: true %>
39
+ </div>
40
+
41
+ <div class="field">
42
+ <%= label_tag :expiration, "Expiração" %>
43
+ <%= text_field_tag :expiration, payment.source.expiration.in_time_zone('America/Sao_Paulo').strftime("%d/%m/%Y às %H:%M"), class:"fullwidth", disabled: true %>
44
+ </div>
45
+ </div>
46
+
47
+ <div class="col-12">
48
+ <div class="field">
49
+ <%= label_tag :copia_cola, "Copia e Cola" %>
50
+ <%= text_field_tag :copia_cola, payment.source.qr_code, class:"fullwidth", disabled: true %>
51
+ </div>
52
+ <div class="field">
53
+ <div style="display: flex; justify-content: center; align-items: center;">
54
+ <img style="width: 200px" src="data:image/jpeg;base64,<%= payment.source&.qr_code_base64 %>" />
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </fieldset>
59
+ </div>
@@ -0,0 +1,5 @@
1
+ pt-BR:
2
+ activerecord:
3
+ models:
4
+ solidus_mp_dois/mp_pix: Pix (Mercado Pago 2)
5
+ solidus_mp_dois/mp_card: Cartão de Crédito (Mercado Pago 2)
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.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_brazilian_adaptations
@@ -58,6 +58,7 @@ files:
58
58
  - app/views/spree/admin/payments/source_views/_mercado_pago_pix.html.erb
59
59
  - app/views/spree/api/payments/source_views/_mercado_pago_card.json.jbuilder
60
60
  - app/views/spree/api/payments/source_views/_mercado_pago_pix.json.jbuilder
61
+ - config/locales/pt-BR.yml
61
62
  - db/migrate/20241119165521_create_solidus_mp_dois_credit_card_sources.rb
62
63
  - db/migrate/20241125135226_create_solidus_mp_dois_customers.rb
63
64
  - db/migrate/20241125201926_create_solidus_mp_dois_cards.rb
@@ -71,7 +72,7 @@ files:
71
72
  homepage: https://github.com/todasessascoisas/solidus_mp_dois
72
73
  licenses: []
73
74
  metadata: {}
74
- post_install_message:
75
+ post_install_message:
75
76
  rdoc_options: []
76
77
  require_paths:
77
78
  - lib
@@ -86,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.5.3
90
- signing_key:
90
+ rubygems_version: 3.5.10
91
+ signing_key:
91
92
  specification_version: 4
92
93
  summary: ''
93
94
  test_files: []