On integrating the code, the SDK will start making API calls to ShieldSquare solution and the response received is in the form of a response code. The response code directly indicates the action to be taken based on the incoming request. All API calls made to ShieldSquare, (in monitor mode) by default would be asynchronous in nature, based on the compatibility of the website platform. In case your website platform does not support asynchronous calls, please reach out tosupportfor further assistance.
Please follow the below-outlined steps to integrate the code in Monitor Mode:
- Set the configuration file
- Integrating the API call to the code
- Integrating the JS call to the code
1. Installation :
Add this line to your application's Gemfile:
gem 'ss2', :git => 'https://bitbucket.org/ss2ast/ror_v2.0', :tag => 'v3.0.2' |
Run the bundle command to install the gem.
After you install the gem, run the generator:
rails generate ss2:install |
The generator prompts for the following details to create ss2_config.rb:
a) Server name - It lists down the available ShieldSquare servers. Please choose the server closest to your region by selecting the option.
b) Sid - Enter the Subscriber Id available in your shield square account - https://admin.shieldsquare.com/subscriber_details/. Copy the Sandbox Id if it is Monitor mode or the Production Id for Active mode
Once the above options are entered ss2_config.rb will be created inside config/initializers folder.