# Phoca Cart Configuration

### General Options <a href="#id-4-1-general-options-tab" id="id-4-1-general-options-tab"></a>

Select Stripe for Phoca Cart in `Payment Method` option:

<figure><img src="https://norrnext.com/images/docs/stripe-for-phoca-cart-general-options.png" alt=""><figcaption><p>Phoca Cart - General Options</p></figcaption></figure>

### Payment Method Options <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/stripe-payment-method-options.png" alt=""><figcaption><p>Phoca Cart - Payment Method Options</p></figcaption></figure>

* **Sandbox Mode** - If Sandbox Mode is enabled, no real money are transfered. Sandbox is used to test the payments.
* **Redirect timeout (seconds)** - set redirect timeout to Stripe checkout page. Set 0 for instant redirect.

#### **Order Statuses**

* **Payment Completed** - Select the order status that will be applied based on successfull payment transaction result. By default it is *Completed*
* **Payment Failed** - Select the order status that will be applied based on failed payment or error during transaction processing. By default it is *Cancelled*.
* **Payment Cancelled** - Select the order status that will be applied based on cancelled payment or error during transaction processing. By default it is *Cancelled*.
* **Payment Unpaid** - Select the order status that will be applied based on unpaid payment or error during transaction processing. By default it is *Confirmed*.
* **Payment Refunded** - Select the order status that will be applied based on refunded payment or error during transaction processing. By default it is *Refunded*.
* **Payment Partially Refunded** - Select the order status that will be applied based on partially refunded payment or error during transaction processing. By default it is *Refunded*. Please select *Partially Refunded.*

#### Stripe Options

* **Dynamic Payment Methods** - allows Stripe to pull your payment method preferences from the Stripe Dashboard to dynamically display the most relevant payment methods to your customers.
* **Payment Methods** - if you need to set the specific payment methods, just add what you need here. Please make sure you've enabled such method(s) in Stripe dashboard. Note that this will disable dynamic payment methods.
* **Payment Intent Description** - allows to set custom payment intent description. Use {ORDER\_NR} constant to pass the order number.

#### **API Keys**

<figure><img src="https://norrnext.com/images/docs/stripe-webhook-url.png" alt="Stripe Payment Method Options - API Keys"><figcaption><p>API Keys and Webhook settings</p></figcaption></figure>

* **Publishable Key** - Set your Publishable Key. You can find it in **Stripe Dashboard > Developers > API keys**.
* **Secret Key** - Set your Secret Key. You can find it in **Stripe Dashboard > Developers > API keys**.
* **Webhook Secret** - Set your Webhook Signing Secret. You can find it in **Stripe Dashboard > Developers > Webhooks**.
* **Webhook URL** - a URL to paste in Stripe dashboard.

Stripe plugin Example:

`https://mysite.com/index.php?option=com_phocacart&view=response&task=response.paymentwebhook&type=stripe&tmpl=component&pid=5`

Stripe Checkout plugin Example:

`https://mysite.com/index.php?option=com_phocacart&view=response&task=response.paymentwebhook&type=stripeco&tmpl=component&pid=6`

Where is *mysite.com* - set up your domain and make sure you have a valid SSL certificate. You need to copy this URL and paste it in Stripe dashboard > [Webhooks](https://docs.norrnext.com/ecommerce/stripe-for-phoca-cart#webhooks).

{% hint style="info" %}
API keys are required fields to save the configuration. Fill them if even you are going to use sandbox mode.
{% endhint %}

**API Test Keys**

* **Publishable Key** - Set your test Publishable Key. You can find it in Stripe Dashboard.
* **Secret Key** - Set your test Secret Key. You can find it in Stripe Dashboard.
* **Webhook Secret** - Set your Webhook Signing Secret. You can find it in Stripe Dashboard > Developers > [Webhooks](https://dashboard.stripe.com/account/webhooks).
