Showing
1 changed file
with
2 additions
and
13 deletions
| ... | @@ -22,11 +22,11 @@ Or install it yourself as: | ... | @@ -22,11 +22,11 @@ Or install it yourself as: |
| 22 | 22 | ||
| 23 | You need to install the configuration for paypal if you intend to use it in your application: | 23 | You need to install the configuration for paypal if you intend to use it in your application: |
| 24 | 24 | ||
| 25 | - $ rails g paypal:sdk:install | 25 | + $ rails g paypal:sdk:install |
| 26 | 26 | ||
| 27 | It will create a configuration file(`config/paypal.yml`) | 27 | It will create a configuration file(`config/paypal.yml`) |
| 28 | 28 | ||
| 29 | -You also need to configure conekta if you intend to use it in your application: | 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`) | 30 | Create a configuration file(`config/initializers/conekta.rb`) |
| 31 | 31 | ||
| 32 | ```ruby | 32 | ```ruby |
| ... | @@ -40,17 +40,6 @@ Conekta.config do |c| | ... | @@ -40,17 +40,6 @@ Conekta.config do |c| |
| 40 | c.api_key = '1tv5yJp3xnVZ7eK67m4h' | 40 | c.api_key = '1tv5yJp3xnVZ7eK67m4h' |
| 41 | c.api_version = '1.0.0' | 41 | c.api_version = '1.0.0' |
| 42 | end | 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 | ``` | 43 | ``` |
| 55 | 44 | ||
| 56 | ## Usage | 45 | ## Usage | ... | ... |
-
Please register or login to post a comment