# Busha Pay for WooCommerce
A WooCommerce payment gateway that lets your customers pay with cryptocurrency.

---

## Installation

### 1. Install from WordPress Dashboard
1. Go to **Plugins → Add New**
2. Search for **"Busha Pay"**
3. Click **Install**, then **Activate**

---

### 2. Install from WordPress.org
1. Download the plugin from:
   https://wordpress.org/plugins/busha-pay/
2. Upload the ZIP file to `wp-content/plugins/` using FTP/SFTP/SCP
3. Activate **Busha Pay** from your Plugins page

---

### 3. Install from This Repository
1. Click **Clone or Download** on this GitHub repository to download the ZIP file,
   or clone it via command line
2. In WordPress, go to **Plugins → Add New → Upload Plugin**
3. Upload the ZIP file, install, and activate
   **OR** move the ZIP to `wp-content/plugins/` and unzip manually

---

## Configuring Busha Pay

1. Create a **Busha Business** account: https://www.busha.io/business
2. In WordPress, go to **WooCommerce → Settings → Payments**
3. Find **Busha Pay** in the payment methods list
4. Click **Manage** to configure the gateway

> **Note:**
> For WooCommerce versions **older than 3.4.x**, the Busha Pay settings are under
> **WooCommerce → Settings → Checkout**

---

## Settings

### Enable / Disable
Turn the Busha Pay payment method on or off at checkout.

### Title
The name displayed for this payment option during checkout.

### Description
A short description shown to customers during checkout.

### Public Key
Found at:
**Profile → Developer Tools → API Tokens → Public Key**
Required to initialize the payment widget.

### Secret Key
Found at:
**Profile → Developer Tools → API Tokens → Add a new secret token**
Used for:
- Periodic payment confirmation checks
- Verifying Busha Pay webhooks

### Webhook Shared Secret
Create a webhook at:
**Profile → Developer Tools → Webhook → Add a new webhook URL**
A secret value will be generated—enter it here.

### Debug Log
Enable to save logs in:
`wp-content/uploads/wc-logs/`
Logs follow the format: `busha-*.log`

---

## Prerequisites

To use this plugin you need:

- [WordPress](https://wordpress.org/)
- [WooCommerce](https://woocommerce.com/)
- [Busha Business Account](https://busha.io/business)
