solidus_mp_dois 0.0.11 → 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: af7af0b0eec5b6f732de7697f0360f83fb4cf74cf3319614b0bafeeef7f56f9e
4
- data.tar.gz: e31162734417a48bcfe0c23dd5ba42c1093e7c08a62f8c71fb4ed6ffa9b4119c
3
+ metadata.gz: 74e7c22a9ffdc640e96a03feaa6c0861e27bbb9dca376665a0712728a322374b
4
+ data.tar.gz: 034cedccb5784dc40a60d1380c65af9605b620b0d97acfe043b05a6d3c18a8ad
5
5
  SHA512:
6
- metadata.gz: 9880712583da0d8d2076b5310cf7c6741452562544c2fbbffcfffac7f0b5bf2c42fd0f45ce32850f240503f551decea1887f0f47cdbcf220785d8393818b4360
7
- data.tar.gz: e0c84eec90aa3c64bab0d72ac943053033d60037542c0c4fd050095790d36430ff8dfa4f43199b2a0acf135b0d2684ad9488f4ee0f65027c48447493c49ff80c
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>
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp_dois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
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
11
  date: 2024-12-17 00:00:00.000000000 Z
@@ -72,7 +72,7 @@ files:
72
72
  homepage: https://github.com/todasessascoisas/solidus_mp_dois
73
73
  licenses: []
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.5.3
91
- signing_key:
90
+ rubygems_version: 3.5.10
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: ''
94
94
  test_files: []