# 11. Payment Method- Admin Panel

### **11. Payment Method**

The "Payment Method" section of the application allows administrators to configure, activate, and test various payment methods to facilitate seamless transactions.

<figure><img src="https://3686328336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd1Iq7THDAagTQzeC9rTN%2Fuploads%2FShPHkMfPvKWe8xGDWMg8%2Fimage.png?alt=media&#x26;token=6b953a9a-24b3-47be-89ca-46f9d3509d5d" alt=""><figcaption><p><strong>Payment Method Interface</strong></p></figcaption></figure>

#### **11.1 Stripe**

Stripe is a payment gateway that enables online payments for your application. It offers a range of features to streamline payment processing.

#### **11.1.1 Configure Stripe Settings and Save**

This function allows administrators to input and save the necessary Stripe settings to integrate Stripe as a payment method.

To set up Stripe as a payment method, administrators must complete the Stripe configuration, which includes the following details:

* **Activation:** Administrators can activate Stripe as a payment method, making it available for customers during checkout.
* **Stripe Key:** This field requires the input of the Stripe API Key, enabling the application to connect to Stripe.
* **Stripe Secret:** The Stripe Secret key is a secure key required for transaction processing.
* **Currency Code:** Administrators must specify the currency code (e.g., aed) to ensure accurate payment processing through Stripe.
* **Stripe Test Mode:** The Stripe test mode allows administrators to simulate payment transactions for testing purposes before deploying the live payment gateway.
* **Stripe Webhook URL:** This URL (<https://majarat.com/api/stripe/webhook/country_code>) is used for Stripe webhooks to notify your application of certain events, such as successful payments or refunds.
* **Stripe Webhook Signing Secret:** This secret key is used for secure verification of Stripe webhook events to ensure their authenticity and integrity.

#### **11.1.2 Activate Stripe**

By selecting this option, administrators can activate Stripe as a payment method, making it available to customers during the checkout process.

#### **11.1.3 Test Mode for Stripe**

The test mode for Stripe allows administrators to simulate payment transactions for testing purposes before deploying the actual payment gateway.

#### **11.2 Razor Pay**

Razor Pay is another payment gateway used for processing online payments efficiently.

#### **11.2.1 Configure Razor Pay Settings and Save**

Administrators can configure and save the settings for integrating Razor Pay as a payment method.

To set up Razorpay as a payment method, administrators must complete the Razorpay configuration, which includes the following details:

* **Activation:** Administrators can activate Razorpay as a payment method, making it available for customers during checkout.
* **Razorpay Key:** This field requires the input of the Razorpay API Key (RAZORPAY KEY), enabling the application to connect to Razorpay.
* **Razorpay Secret:** The Razorpay Secret key (RAZORPAY SECRET) is a secure key required for transaction processing.
* **Currency Code:** Administrators must specify the currency code (e.g., "usd" or "aed") to ensure accurate payment processing through Razorpay.
* **Razorpay Test Mode:** The Razorpay test mode allows administrators to simulate payment transactions for testing purposes before deploying the live payment gateway.

#### **11.2.2 Activate Razor Pay**

This feature enables administrators to activate Razor Pay as a payment method for customers.

#### **11.2.3 Test Mode for Razor Pay**

Razor Pay's test mode allows administrators to perform trial transactions for testing and verifying payment processes.

#### **11.3 Cash on Delivery (COD)**

Cash on Delivery (COD) is a payment method that allows customers to make payments in cash upon receiving the products.

#### **11.3.1 Activate COD**

Administrators can activate the Cash on Delivery payment method, providing customers with the option to pay in cash when receiving their orders.
