CyberSiARA™ | Opencart

Open Cart Integration Guideline

1. Download SiaraShield Plugin here

2. Go to Admin Panel -> Extensions -> Installer.

3. Upload SiaraShield.ocmod.zip.

4. Go to Extensions-> Extensions Then choose the extension type “Modules”.

5. Click on Green Plus button to install SiaraShield extension.

6. After click on edit Button.

7. Add your Public key, Private key, Form Class ID/Class, Submit button Class ID/Class and Enable Status then click the Save Changes  button.

8. Save all the details then check you Web form.

How to install SiaraShield in Open Cart

9. Once all these steps are done, go to your browser and refresh the page and enjoy the SiaraShield. Thank you for using SiaraShield!

1. Create method for initialized captcha on load.

        <script>
            export default{
                    name:'PageName',
                    components:{...},
                    mounted() {this.mycybersiara()},
                    methods(){
                            mycybersiara(){
                            var PublicKey = 'TEST-CYBERSIARA';
                         InitCaptcha('PublicKey');
                         $('.CaptchaSubmit').click(function (){
                    if(CheckCaptcha()){
                axios.get('https://embed.mycybersiara.com/api/validate-token',{
                    headers:{ key: 'TEST-CYBERSIARA', Authorization: `Bearer ${CyberSiaraToken}' }
                             }).then((res) =>{
                    // Please write your submit button click event function here //
                            })
                    }
                            });
                        }
                    }...
                }
                                
</script>