solidus_mp_dois 0.0.11 → 0.0.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0926eff6dae3c609d064fa086107ae6f6062997332e07684ea58eee548a3d853'
|
4
|
+
data.tar.gz: e4feaed3314e1b037321c11500067e5362519ace502e62aeabeadc7283acfdc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07dea6d4c7910b9e451100d590483c3519d823b2f086704fca23037e672a26cd6f0784135b58f1f6806d0af99cf0a9860740871ab0331ecddde7490a3e22cbef
|
7
|
+
data.tar.gz: 64dd6c53d1c9a4968849e6d52aad79a6899b5515054309b5d59e1a025ce5996da0ab82c0a1c0a9f8f186b8820b11576ddd4ef7b57c50b4a21b0a574efc57d8f6
|
@@ -1 +1,58 @@
|
|
1
|
-
|
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 :external_id, 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.try(: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
|
-
|
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.try(: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>
|