=== CyberActive School ===
Donate link: http://www.cyberactiveonline.com/
Tags: Cyber Active, Drivers Education Course, Traffic School Course
Requires at least: 4.3
Requires PHP: 5.2.4
Tested up to: 4.9.1
Stable tag: 2.0.1
License: Proprietary

== Description ==

This is “software as a service” to provide white-label traffic school and driver education products to online businesses. Once a business installs the plugin on their wordpress site, end users can select a traffic school or driver education product and enroll in it to earn course completion credit (for ticket dismissal, point reduction or driver education).  The online business' account will be credited for completed referrals.

== Installation ==

1. Login to your Wordpress site as administrator.
2. Install plugin [CyberActive School](https://wordpress.org/plugins/cyberactive-dmv-traffic-school/).
3. Go to Settings » Traffic School and setup paramaters. You should get all these settings from CyberActive company. Required to setup:
    - GTTS HMAC public key
    - GTTS HMAC secret key
    - PORTAL KEY
See full settings section below.

= Settings =

The plugin has several settings that important to setup before plugin can work.

* Tracking

 **GA Tracking Code:**
  *Require: NO*
  *Description: Google analytics tracking code to be inserted to every plugin page. It looks like UA-00000000-1.*

 **DirectMarket domain key:**
  *Require: NO*

= GoToTrafficSchool Settings =


**GTTS API endpoint:**
 *Require: YES*
 *Description: API url. Is not intended to be changed. Default is https://api.gototrafficschool.com/*

**GTTS API Basic Auth username:**
 *Require: NO*
 *Description: Legacy authentication method. Should be empty.*

**GTTS API Basic Auth password:**
 *Require: NO*
 *Description: Legacy authentication method. Should be empty.*

**GTTS HMAC public key:**
 *Require: YES*
 *Description: HMAC security public key that relates only to your partner. Keep it safe.*

**GTTS HMAC secret key:**
 *Require: YES*
 *Description: HMAC security secret key that relates only to your partner. Keep it safe.*

**WEBSITE ID:**
 *Require: NO*
 *Description: Is used when website (non-partner) mode is used. If set partner HMAC public and secret keys will be ignored.*

**PORTAL KEY:**
 *Require: YES*
 *Description: Your portal key identifier.*

**Third-party course provider:**
 *Require: NO*
 *Description: Absolute url where registered students will log in to access their profile and take courses. If this field is left empty, the login url provided by the API would be used as a fallback.*

**Invoices:**
 *Require: NO*

**Google conversion id:**
 *Require: NO*

**Google conversion label:**
 *Require: NO*

**Bing UET ID:**
 *Require: NO*

= Developer Options =

**Email for technical failure alerts:**
 *Require: NO*

**Subject of technical failure alerts:**
 *Require: NO*

**Elmah Log ID:**
 *Require: NO*
 *Description: We use [Elmah](https://elmah.io/) service to log failed API requests. Register and fill Log ID field to get it.*

= Usage =

**Insert the url into the Courses selection page as the format:**
 - http://your-domain/courses-selection/?src=portal-key&st=state
Or
 - http://your-domain/courses-selection/?cat=category-key&st=state

**Insert the url into the product page as the format:**
 - http://your-domain/courses/shipping?st=state&prod=product-id&cat=category
Or
 - http://your-domain/courses/shipping?st=state&prod=product-id&src=portal-key

= Troubleshooting =

1. How to fix 404 Not found error with checkout page: you should update your permalinks settings and flush rewrite rules
    - Go to Settings » Permalinks, and simply click on Save Changes button.
2. How to fix the checkout page's layout is broken:
    - Normally plugin loads the Bootstrap library bundled with the plugin by checking the option "Include local Bootstrap".
    - If your theme has used Bootstrap library, you should uncheck the option "Include local Bootstrap".

= Support =

This is a developer's portal for the plugin and should not be used for support. Please visit the
[support forums](http://www.cyberactiveonline.com/#contact-us-section).

== Frequently Asked Questions ==

= How to fix 404 Not found error with checkout page? =

You should update your permalinks settings and flush rewrite rules
- Go to Settings » Permalinks, and simply click on Save Changes button.

= How to fix the checkout page's layout is broken? =

- Normally plugin loads the Bootstrap library bundled with the plugin by checking the option "Include local Bootstrap".
- If your theme has used Bootstrap library, you should uncheck the option "Include local Bootstrap".

== Screenshots ==

== Changelog ==
= 1.0 =
* Initial plugin
= 1.1 =
* Integrate Object cache and new APIs

== Upgrade Notice ==
= 1.0 =
* Initial plugin
= 1.1 =
* Integrate Object cache and new APIs
= 1.2 =
* Update readme file