# Payment Settings

### **Accessing Payment Settings**

1. Go to **Store → Settings**
2. Select **Payment settings**

This opens the complete Stripe configuration panel.

***

## **Stripe Payment Gateway**

Stripe handles secure card payments for all product types — single courses, bundles, and subscriptions.

***

### **Enable Payment Gateway**

Toggle to activate or deactivate Stripe payments on your store.

* **Show** → Your store is ready to accept payments
* **Hide** → Checkout will not display payment options

***

## **Stripe Live Mode Configuration**

Use this when your store is ready to accept real payments.

#### **Fields Required (Live Mode)**

| Field                     | Description                                                            |
| ------------------------- | ---------------------------------------------------------------------- |
| **Secret key**            | Stripe’s live secret key from Stripe Dashboard                         |
| **Public key**            | Stripe’s live publishable key                                          |
| **Webhook secret (Live)** | Needed for processing order events, enrollments, subscription renewals |

**Where to find it:**\
Stripe Dashboard → Developers → API Keys / Webhooks

**Webhook URL to add in Stripe:**\
`https://yourmoodlesite.com/local/edwiserstore/webhook.php`\
(Shown in the UI for user convenience)

***

Use this for trial transactions before going live.

Toggle: **Turn on Testing mode → Show**

#### **Fields Required (Test Mode)**

| Field                     | Description                 |
| ------------------------- | --------------------------- |
| **Test secret key**       | Stripe test secret key      |
| **Test public key**       | Stripe test publishable key |
| **Webhook secret (Test)** | Test webhook signing secret |

**Use Stripe Test Cards** to simulate payments:

* 4242 4242 4242 4242
* 4000 0027 6000 3184 (3D secure)\
  And more.

***

## **Store Location & Currency**

#### **Country**

Select your store’s country.\
Useful for currency formatting & tax rules.

#### **Currency**

Choose the default checkout currency.\
Examples:

* USD ($)
* EUR (€)
* GBP (£)
* INR (₹)

(Only currencies supported by Stripe will appear.)

***

## **Tax Settings**

Toggle **Enable taxes → Show** to configure tax rules.

#### Add a Tax Rule

* **Tax name** → Example: VAT, GST, Sales Tax
* **Tax percentage (%)** → Example: 18
* Click **Add new tax**

Multiple tax rules can be added.

This tax is automatically applied during checkout.

***

## **Terms & Conditions**

Enable this to display a consent checkbox on the checkout page.

#### Fields:

* **Add title** → e.g., *I agree to the Terms & Conditions*
* **Add content** → Add full policy text (HTML supported)

This prevents checkout unless the customer accepts T\&C.

***

## **Save Changes**

Click **Save changes** to activate your settings.
