> For the complete documentation index, see [llms.txt](https://docs.norrnext.com/stripe-for-virtuemart/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.norrnext.com/stripe-for-virtuemart/virtuemart-configuration.md).

# VirtueMart Configuration

Learn how to configure VirtueMart to accept payments with Stripe.

### Create new order status

Stripe allows issuing partial refunds, while VirtueMart doesn't have such an order status by default. We recommend creating it.

Go to VirtueMart > any page and click on the arrow icon to open the sidebar for additional links (sidebar is closed by default).

<figure><img src="https://norrnext.com/images/docs/vm-stripeco10.png" alt=""><figcaption><p>Open sidebar to get extra menu</p></figcaption></figure>

Open the extra menu by clicking on the arrow icon and go to **Configuration > Order Statuses**.

<figure><img src="https://norrnext.com/images/docs/vm-stripeco8.png" alt=""><figcaption><p>Proceed to Order Statuses and create a new status</p></figcaption></figure>

Type `Partially Refunded` for the name and add an **Order Status Code**. It can be any available letter (e.g. `E`).

<figure><img src="https://norrnext.com/images/docs/vm-stripeco9.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you use Stripe Checkout, you may also want to add a dedicated `Payment Unpaid` status for pending async payment methods.
{% endhint %}

### Payment Method Information <a href="#id-4-1-general-options-tab" id="id-4-1-general-options-tab"></a>

Go to **Payment Methods**, edit your **Stripe** or **Stripe Checkout** method, and open the **Payment Method Information** tab:

<figure><img src="https://norrnext.com/images/docs/vm-stripeco5.png" alt=""><figcaption><p>VirtueMart - Payment Method Information</p></figcaption></figure>

Type the name of the Stripe payment method to be displayed at checkout (e.g. "Credit / Debit Card (Stripe)").

### Configuration <a href="#id-4-6-payment-method-options-tab" id="id-4-6-payment-method-options-tab"></a>

<figure><img src="https://norrnext.com/images/docs/vm-stripeco6.png" alt=""><figcaption><p>VirtueMart - Stripe payment method configuration</p></figcaption></figure>

* **Sandbox Mode** - If Sandbox Mode is enabled, no real money are transferred. Sandbox is used to test payments.
* **Debug** - If enabled, all transaction events and debug data will be logged.
* **Redirect timeout** - *(Stripe Checkout only)* Set the redirect timeout in seconds before automatically sending the customer to the Stripe Checkout page (default is `3` seconds).
* **Payment Intent Description** - Allows setting a custom payment description. Use the `{ORDER_NR}` placeholder to pass the order number. Default: `VirtueMart: {ORDER_NR}`.

#### **Order Statuses**

* **Payment Completed** - Select the order status that will be applied based on successful payment transaction result. By default it is *Confirmed*.
* **Payment Failed** - Select the order status that will be applied based on failed payment or transaction error. By default it is *Cancelled*.
* **Payment Cancelled** - Select the order status that will be applied based on cancelled payment. By default it is *Cancelled*.
* **Payment Unpaid** - *(Stripe Checkout only)* Select the order status applied to unpaid or pending async payments. By default it is *Pending*.
* **Payment Refunded** - Select the order status that will be applied based on refunded payment. By default it is *Refunded*.
* **Payment Partially Refunded** - Select the order status that will be applied based on partially refunded payment. By default it is *Refunded*. We recommend selecting the created *Partially Refunded* status.

#### **Stripe Elements Options**

*(Available in Stripe Elements plugin only)*

* **Elements Layout** - `Tabs` / `Accordion`. Layout style for the on-page payment elements form.
* **Elements Theme** - `Stripe` / `Flat` / `Night`. Visual styling preset for the payment form.

#### **API Keys**

<figure><img src="https://norrnext.com/images/docs/vm-stripeco7.png" alt="API Keys and Webhook settings"><figcaption><p>API Keys and Webhook settings</p></figcaption></figure>

* **Publishable Key** - Set your Live Publishable Key. You can find it in **Stripe Dashboard > Developers > API keys**.
* **Secret Key** - Set your Live Secret Key. You can find it in **Stripe Dashboard > Developers > API keys**.
* **Webhook Secret** - Set your Live Webhook Signing Secret. You can find it in **Stripe Dashboard > Developers > Webhooks**.
* **Webhook URL** - A read-only helper field providing the exact URL to add to the Stripe Dashboard.

Example URL:

`https://yoursite.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&pm=7`

Where `yoursite.com` is your domain and `pm=7` is your payment method ID. Ensure your site has a valid SSL certificate. Copy this URL and paste it in **Stripe Dashboard > Developers >** [**Webhooks**](https://dashboard.stripe.com/account/webhooks).

{% hint style="info" %}
API keys are required to process payments. Fill in test keys if you are using sandbox mode, or live keys for production.
{% endhint %}

**API Test Keys**

* **Test Publishable Key** - Set your test Publishable Key.
* **Test Secret Key** - Set your test Secret Key.
* **Test Webhook Secret** - Set your test Webhook Signing Secret.

#### **Fees and Taxes**

* **Fee per Transaction** - A fixed surcharge for using this payment method.
* **Fee as Percent of Total Amount** - A percentage-based surcharge on the total order amount.
* **Tax** - Select a VirtueMart tax rule to apply to the payment fees.
