trado_paypal_module 0.9.2 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/app/helpers/paypal_helper.rb +8 -0
- data/app/views/carts/_paypal_checkout_fields.html.erb +4 -0
- data/lib/generators/trado_paypal_module/install_generator.rb +0 -4
- data/lib/generators/trado_paypal_module/views_generator.rb +12 -0
- data/lib/trado_paypal_module/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876a5834632bb269a5ef0ecbc5af43e29d53fb63
|
4
|
+
data.tar.gz: b7b60282b1feac30e91df0d949d8e13d0bf6f19c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35e5e3d7db442b429e7e4e399b2382f47b9c98a3761b3f70a87bdcefdcdb9867984d474b87a57fdfb855d4673663a4cd06942adfa8b6660936da6288b5910563
|
7
|
+
data.tar.gz: 27b7965a1ed04f114f4268511a7ecfff4b6250c4d574a4452f0aedfc996616c237e98a2c466cd1ee36ef0e4881bf768d4b762a59ad3b24cae0147d43e96f7810
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Then run bundle to install the Gem:
|
|
19
19
|
bundle install
|
20
20
|
```
|
21
21
|
|
22
|
-
Now generate migrations,
|
22
|
+
Now generate migrations, set up environment configurations and assign model concerns:
|
23
23
|
|
24
24
|
```sh
|
25
25
|
rails generate trado_paypal_module:install
|
@@ -44,6 +44,12 @@ production:
|
|
44
44
|
```
|
45
45
|
*(You can sign up for a PayPal developer account at the [developer dashboard](https://developer.paypal.com))*
|
46
46
|
|
47
|
+
You can also customise the HTML for the PayPal fields in your checkout:
|
48
|
+
|
49
|
+
```sh
|
50
|
+
rails generate trado_stripe_module:views
|
51
|
+
```
|
52
|
+
|
47
53
|
Restart the main application server:
|
48
54
|
|
49
55
|
```sh
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TradoPaypalModule
|
2
|
+
module Generators
|
3
|
+
class ViewsGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../../../../app/views", __FILE__)
|
5
|
+
|
6
|
+
def copy_views
|
7
|
+
copy_file 'carts/_paypal_checkout_fields.html.erb', "app/views/themes/#{Store.settings.theme.name}/carts/_paypal_checkout_fields.html.erb"
|
8
|
+
puts "Copied to your #{Store.settings.theme.name} theme!"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trado_paypal_module
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dallimore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,11 +64,14 @@ files:
|
|
64
64
|
- Rakefile
|
65
65
|
- app/controllers/trado_paypal_module/ipn_controller.rb
|
66
66
|
- app/controllers/trado_paypal_module/paypal_controller.rb
|
67
|
+
- app/helpers/paypal_helper.rb
|
68
|
+
- app/views/carts/_paypal_checkout_fields.html.erb
|
67
69
|
- config/routes.rb
|
68
70
|
- lib/generators/templates/controller.rb
|
69
71
|
- lib/generators/templates/helper.rb
|
70
72
|
- lib/generators/templates/migration.rb
|
71
73
|
- lib/generators/trado_paypal_module/install_generator.rb
|
74
|
+
- lib/generators/trado_paypal_module/views_generator.rb
|
72
75
|
- lib/tasks/trado_paypal_module_tasks.rake
|
73
76
|
- lib/trado_paypal_module.rb
|
74
77
|
- lib/trado_paypal_module/active_record.rb
|