Showing
2 changed files
with
34 additions
and
0 deletions
| ... | @@ -20,6 +20,39 @@ Or install it yourself as: | ... | @@ -20,6 +20,39 @@ Or install it yourself as: |
| 20 | 20 | ||
| 21 | $ gem install var | 21 | $ gem install var |
| 22 | 22 | ||
| 23 | +You need to install the configuration for paypal if you intend to use it in your application: | ||
| 24 | + | ||
| 25 | + $ rails g paypal:sdk:install | ||
| 26 | + | ||
| 27 | +It will create a configuration file(`config/paypal.yml`) | ||
| 28 | + | ||
| 29 | +You also need to configure conekta if you intend to use it in your application: | ||
| 30 | +Create a configuration file(`config/initializers/conekta.rb`) | ||
| 31 | + | ||
| 32 | +```ruby | ||
| 33 | +Conekta.locale = :es | ||
| 34 | + | ||
| 35 | +Conekta.api_key = '1tv5yJp3xnVZ7eK67m4h' | ||
| 36 | + | ||
| 37 | +# Or via an initializer in config/initializers/conekta.rb | ||
| 38 | +Conekta.config do |c| | ||
| 39 | + c.locale = :es | ||
| 40 | + c.api_key = '1tv5yJp3xnVZ7eK67m4h' | ||
| 41 | + c.api_version = '1.0.0' | ||
| 42 | +end | ||
| 43 | + | ||
| 44 | +Conekta.locale = :es | ||
| 45 | + | ||
| 46 | +Conekta.api_key = '1tv5yJp3xnVZ7eK67m4h' | ||
| 47 | + | ||
| 48 | +# Or via an initializer in config/initializers/conekta.rb | ||
| 49 | +Conekta.config do |c| | ||
| 50 | + c.locale = :es | ||
| 51 | + c.api_key = '1tv5yJp3xnVZ7eK67m4h' | ||
| 52 | + c.api_version = '1.0.0' | ||
| 53 | +end | ||
| 54 | +``` | ||
| 55 | + | ||
| 23 | ## Usage | 56 | ## Usage |
| 24 | 57 | ||
| 25 | TODO: Write usage instructions here | 58 | TODO: Write usage instructions here | ... | ... |
| ... | @@ -27,6 +27,7 @@ Gem::Specification.new do |spec| | ... | @@ -27,6 +27,7 @@ Gem::Specification.new do |spec| |
| 27 | spec.require_paths = ["lib"] | 27 | spec.require_paths = ["lib"] |
| 28 | 28 | ||
| 29 | spec.add_dependency 'conekta', "~> 0.5" | 29 | spec.add_dependency 'conekta', "~> 0.5" |
| 30 | + spec.add_dependency 'paypal-sdk-rest' | ||
| 30 | spec.add_development_dependency "bundler", "~> 1.10.a" | 31 | spec.add_development_dependency "bundler", "~> 1.10.a" |
| 31 | spec.add_development_dependency "rake", "~> 10.0" | 32 | spec.add_development_dependency "rake", "~> 10.0" |
| 32 | end | 33 | end | ... | ... |
-
Please register or login to post a comment