unlock_moip 0.1.0 → 0.2.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afa68909a87099db0c34020e64ca5a3bc53b3b9f
|
|
4
|
+
data.tar.gz: 6269e37354eb9438ac41326dfb459acecf512942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7fece2ca536bf8c8426d7e0f639c94d72791d0b14a7cd3435eef7e19cd75e4cb30c4a4b56d8427e2a11bd7e8ba4ba4d6804db66121bbf2560ae3b5797b5246c
|
|
7
|
+
data.tar.gz: 73128967004a22bda7ab476a1fc58ca63dc7c22f73a91490d73112baed05429e49676c32e49abce22f5ea456a07fbd8679db2c620a1f9c95a3a9bd19a85253a6
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
- content_for :title do
|
|
2
2
|
= "Dados de pagamento"
|
|
3
3
|
- content_for :external_js do
|
|
4
|
-
|
|
4
|
+
/ TODO get back to using JS from moip.com.br for production, whenever it's working
|
|
5
|
+
/ script type="text/javascript" src="https://#{( @contribution.gateway.sandbox? ? 'sandbox' : 'api' )}.moip.com.br/moip-assinaturas.min.js"
|
|
6
|
+
- if @contribution.gateway.sandbox?
|
|
7
|
+
script type="text/javascript" src="https://sandbox.moip.com.br/moip-assinaturas.min.js"
|
|
8
|
+
- else
|
|
9
|
+
= javascript_include_tag '/moip-assinaturas.min.js'
|
|
5
10
|
= form_for @contribution, url: activate_moip_contribution_path(@contribution), method: :put, html: { style: 'display: none'} do |form|
|
|
6
11
|
form#pay_form autocomplete="off" data-token=@contribution.gateway.settings["token"] data-plan=@contribution.plan_code data-customer=@contribution.customer_code data-subscription=@contribution.subscription_code
|
|
7
12
|
= render partial: 'initiatives/contributions/sandbox_warning', locals: { gateway: @contribution.gateway }
|
|
@@ -22,7 +27,7 @@ form#pay_form autocomplete="off" data-token=@contribution.gateway.settings["toke
|
|
|
22
27
|
= label_tag :terms, "Eu li e aceito os #{ link_to 'termos de uso', page_path('terms'), target: :_blank }.".html_safe
|
|
23
28
|
h4.value
|
|
24
29
|
= "Apoio de "
|
|
25
|
-
span=
|
|
30
|
+
span= @contribution.display_value
|
|
26
31
|
= "/mês"
|
|
27
32
|
.gateway_data
|
|
28
33
|
.submit= submit_tag "Confirmar pagamento"
|
data/lib/unlock_moip/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unlock_moip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Weinmann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.2.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 0.2.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: moip-assinaturas
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|