| ... | @@ -4,7 +4,7 @@ First, you'll need to get your API token from the 3D Cart admin interface, usual |
... | @@ -4,7 +4,7 @@ First, you'll need to get your API token from the 3D Cart admin interface, usual |
|
|
|
|
|
|
|
### Rails
|
|
### Rails
|
|
|
|
|
|
|
|
create a yml file under `config/initializers/threedeecart.yml`
|
|
create a yml file under `config/threedeecart.yml`
|
|
|
``` yaml
|
|
``` yaml
|
|
|
wsdl: http://api.3dcart.com/cart.asmx?WSDL
|
|
wsdl: http://api.3dcart.com/cart.asmx?WSDL
|
|
|
api_token: <YOUR_API_TOKEN>
|
|
api_token: <YOUR_API_TOKEN>
|
| ... | @@ -12,7 +12,7 @@ api_token: <YOUR_API_TOKEN> |
... | @@ -12,7 +12,7 @@ api_token: <YOUR_API_TOKEN> |
|
|
next, create an initializer under `config/initializers/threedeecart.rb`
|
|
next, create an initializer under `config/initializers/threedeecart.rb`
|
|
|
|
|
|
|
|
``` ruby
|
|
``` ruby
|
|
|
ThreeDeeCart.load_configuration(File.join(Rails.root, "config", "threedeecart.yml")
|
|
ThreeDeeCart.load_configuration(File.join(Rails.root, "config", "threedeecart.yml"))
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
And that's it!
|
|
And that's it!
|
| ... | | ... | |