We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ThreeDeeCart supports two configuration methods, loading from a YAML file or by using a block
First, you'll need to get your API token from the 3D Cart admin interface, usually in your account settings.
create a yml file under config/threedeecart.yml
config/threedeecart.yml
wsdl: http://api.3dcart.com/cart.asmx?WSDL api_token: <YOUR_API_TOKEN>
next, create an initializer under config/initializers/threedeecart.rb
config/initializers/threedeecart.rb
ThreeDeeCart.load_configuration(File.join(Rails.root, "config", "threedeecart.yml"))
And that's it!
You can still use the YAML configuration file convention, but also using a block:
ThreeDeeCart.config do |config| config.wsdl = "http://api.3dcart.com/cart.asmx?WSDL" config.api_token = "YOURTOKEN" end