# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://remui-docs.edwiser.org/edwiser-store/getting-started/post-installation/course-sync-as-product/payment-and-coupon/payment-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
