=== CareerByteCode ByteConnect ===
Contributors: careerbytecode
Tags: courses, catalogue, affiliate, education, partner
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show the CareerByteCode programs you offer as a ByteConnect partner with one shortcode. Buyers pay on CareerByteCode's secure checkout.

== Description ==

For ByteConnect partners of CareerByteCode (institutes, colleges, communities and creators). Add `[cbc_catalogue]` to any page or post and your chosen CareerByteCode programs appear with their price including GST and a Join button. The buyer signs in and pays on CareerByteCode, learns there, and the sale is attributed to your partner account (your ByteStore reseller share).

Two modes (Settings > CareerByteCode):

* **Widget (no API keys).** Paste the public widget key from your ByteConnect console (Widget) and add this site's address to the widget's allowed sites there. Nothing secret is stored.
* **API (signed calls).** Your API key id and secret from the console. The plugin reads your catalogue from your server with signed requests (cached), and the Join button makes a checkout link with POST /api/v1/checkout. For live keys your server's outgoing address must be on your ByteConnect server address list.

Shortcode options: `type` (course, exam, byteclass, byteplay or bytelabs) and `limit` (1 to 60), for example `[cbc_catalogue type="course" limit="6"]`.

Full guide: https://www.careerbytecode.in/byteconnect/docs/#wordpress

== Installation ==

1. In WordPress go to Plugins > Add New > Upload Plugin and choose the zip you downloaded from https://www.careerbytecode.in/byteconnect/docs/#wordpress (check its SHA-256 there first).
2. Activate it, then open Settings > CareerByteCode.
3. Choose Widget and paste your widget key (or choose API and paste your key id and secret).
4. Add `[cbc_catalogue]` to a page.

== Frequently Asked Questions ==

= Is my API secret safe? =
It is stored in your WordPress database (options) and used only from your server to sign requests. It is never printed in a page. Removing the plugin deletes it. The widget mode needs no secret at all.

= Who handles payments? =
CareerByteCode. The plugin never sees card or UPI details.

= The widget says this site is not allowed =
Add your site address (for example www.example.com) to the widget's allowed sites in your ByteConnect console.

== Changelog ==

= 1.0.0 =
* First release: [cbc_catalogue] shortcode, widget mode and signed API mode with cached catalogue and checkout links.
