stripe_wrapper 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/stripe_wrapper/charges/_pay.html.haml +10 -10
- data/config/locales/en.yml +14 -1
- data/config/locales/es.yml +14 -1
- data/lib/stripe_wrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6fb066fee9e3d91f471a5a9287b4fc5a7e28bf4
|
4
|
+
data.tar.gz: 6cf82ce54862e97ccb29e10d16ff9f8dd9a0f112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e720529b1737ffad511db9c716426b66f456eafb955a9a5763fa5c7ac9f0bc5f9803bb089b6dfa6a7b48d2e9029d235cfdcbefbb85580bef711713d239071460
|
7
|
+
data.tar.gz: 19f0a04ab0284c64f54c35f657f0b438fb1e5614362517970fffa6e90058e3109dad9e2b340e058ab8cdac35864c6ff13da816811ca4548bcd621136a5b5bd68
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.panel.panel-default
|
11
11
|
.panel-heading
|
12
12
|
%h3.panel-title
|
13
|
-
|
13
|
+
=I18n.t('stripe_wrapper.views.charges.pay.details')
|
14
14
|
/ .checkbox.pull-right
|
15
15
|
/ %label
|
16
16
|
/ %input{:type => "checkbox"}/
|
@@ -19,32 +19,32 @@
|
|
19
19
|
%span.payment-errors
|
20
20
|
.form-group
|
21
21
|
%label{:for => "cardNumber"}
|
22
|
-
|
22
|
+
=I18n.t('stripe_wrapper.views.charges.pay.card_number_title')
|
23
23
|
.input-group
|
24
|
-
= text_field_tag :card_number,nil, placeholder: '
|
24
|
+
= text_field_tag :card_number,nil, placeholder: I18n.t('stripe_wrapper.views.charges.pay.card_number_placeholder'), class: 'form-control',data:{stripe:'number'}
|
25
25
|
%span.input-group-addon
|
26
26
|
%span.glyphicon.glyphicon-lock
|
27
27
|
.row
|
28
28
|
.col-xs-7.col-md-7
|
29
29
|
.form-group
|
30
|
-
%label{:for => "expityMonth"}
|
30
|
+
%label{:for => "expityMonth"}=I18n.t('stripe_wrapper.views.charges.pay.expiration_date')
|
31
31
|
.col-xs-6.col-lg-6.pl-ziro
|
32
|
-
= text_field_tag :card_month,nil, placeholder: '
|
32
|
+
= text_field_tag :card_month,nil, placeholder: I18n.t('stripe_wrapper.views.charges.pay.expiration_date_month'), class: 'form-control',data:{stripe:'exp_month'}
|
33
33
|
.col-xs-6.col-lg-6.pl-ziro
|
34
|
-
= text_field_tag :card_year,nil, placeholder: '
|
34
|
+
= text_field_tag :card_year,nil, placeholder: I18n.t('stripe_wrapper.views.charges.pay.expiration_date_year'), class: 'form-control',data:{stripe:'exp_year'}
|
35
35
|
.col-xs-5.col-md-5.pull-right
|
36
36
|
.form-group
|
37
37
|
%label{:for => "cvCode"}
|
38
|
-
|
39
|
-
= text_field_tag :card_cv,nil, placeholder: '
|
38
|
+
=I18n.t('stripe_wrapper.views.charges.pay.cv_code')
|
39
|
+
= text_field_tag :card_cv,nil, placeholder: I18n.t('stripe_wrapper.views.charges.pay.cv_placeholder'), class: 'form-control',data:{stripe:'cvc'}
|
40
40
|
%ul.nav.nav-pills.nav-stacked
|
41
41
|
%li.active
|
42
42
|
%a{:href => "#"}
|
43
43
|
%span.badge.pull-right
|
44
44
|
%span.glyphicon.glyphicon-usd>
|
45
45
|
="#{@amount}"
|
46
|
-
|
46
|
+
=I18n.t('stripe_wrapper.views.charges.pay.total')
|
47
47
|
%br/
|
48
|
-
=submit_tag '
|
48
|
+
=submit_tag I18n.t('stripe_wrapper.views.charges.pay.submit'), class: 'btn btn-success btn-lg btn-block submit'
|
49
49
|
:javascript
|
50
50
|
Stripe.setPublishableKey("#{ENV['STRIPE_PUBLIC_KEY']}");
|
data/config/locales/en.yml
CHANGED
@@ -10,4 +10,17 @@ en:
|
|
10
10
|
menu:
|
11
11
|
customers: 'Customers'
|
12
12
|
charges: 'Charges'
|
13
|
-
home: 'Home'
|
13
|
+
home: 'Home'
|
14
|
+
views:
|
15
|
+
charges:
|
16
|
+
pay:
|
17
|
+
details: 'Payment Details'
|
18
|
+
card_number_title: 'CARD NUMBER'
|
19
|
+
card_number_placeholder: 'Valid card number'
|
20
|
+
expiration_date: 'EXPIRATION DATE'
|
21
|
+
expiration_date_month: 'Month'
|
22
|
+
expiration_date_year: 'Year'
|
23
|
+
cv_code: 'CV CODE'
|
24
|
+
cv_placeholder: 'CV'
|
25
|
+
total: 'Total'
|
26
|
+
submit: 'Pay'
|
data/config/locales/es.yml
CHANGED
@@ -10,4 +10,17 @@ es:
|
|
10
10
|
menu:
|
11
11
|
customers: 'Clientes'
|
12
12
|
charges: 'Cargos'
|
13
|
-
home: 'Inicio'
|
13
|
+
home: 'Inicio'
|
14
|
+
views:
|
15
|
+
charges:
|
16
|
+
pay:
|
17
|
+
details: 'Detalles del pago'
|
18
|
+
card_number_title: 'NÚMERO DE TARJETA'
|
19
|
+
card_number_placeholder: 'Número de tarjeta válido'
|
20
|
+
expiration_date: 'FECHA DE EXPIRACIÓN'
|
21
|
+
expiration_date_month: 'Mes'
|
22
|
+
expiration_date_year: 'Año'
|
23
|
+
cv_code: 'CÓDIGO CV'
|
24
|
+
cv_placeholder: 'CV'
|
25
|
+
total: 'Total'
|
26
|
+
submit: 'Pagar'
|