Back to Top

Laravel eCommerce CashU Payment Gateway

Updated 16 August 2021

Laravel eCommerce CashU Payment Gateway

CashU payment is one of the popularly used payment methods in MENA countries and also in North Africa.
With the help of the Laravel eCommerce CashU payment gateway, the admin can integrate CashU payment with the Bagisto eCommerce store and customers can also select CashU payment method for the purchase of products.

How to install the module?

Customers will get a zip folder after purchasing the extension and Unzip the extension zip and then merge the “packages” folders into the project root directory.


Goto config/app.php file and add the following line under ‘providers’.

cashu payment gateway

Goto composer.json file and add the following line under ‘psr-4’

"Webkul\CashU\": "packages/Webkul/CashU/src" 
laravel cashu payment gateway

Now goto VerifyCsrfToken.php file and add following line in protected $except array (FilePath – app>>Http>>Middleware>>VerifyCsrfToken.php)

Start your headless eCommerce
Find out More

laravel ecommerce cashu payment gateway

Run these commands below to complete the setup

composer dump-autoload

Admin Configuration For Laravel ECommerce CASHU Payment Gateway

After the successful installation of the module, the admin will also have to configure the module.

Click on configure>>Sales>>Payments Method, Under the CashU payment section, several fields required to be filled.

Title:-Admin can set the title in this field that will be visible in the Front end.

Description:- Admin can provide the description in this field that will be visible on the checkout page.

Status:- Admin can Active or Disactive the module from here.

Merchant Id:- Admin has to provide the login Id here for the

Encryption Keyword:- Admin need to provide the password here for the

Display text:- This will be visible in the CashU payment page.

Transaction Mode:- Admin can also set the transaction mode between test and live in this field.

Encryption:- Admin can also set the encryption between Enhanced and Default in this field.

Sort order:- Admin can set the sort order here for the CashU payment that will be visible in the front end.

laravel cashu payment gateway

Laravel eCommerce CashU payment gateway-Front end

Now the customers can select the CashU Payment method that is visible under the Select Payment Method.

cashu payment gateway laravel

After selecting the CashU payment a page will generate that will show the message like shown below:-

bagisto cashu payment6 gatewayScreenshot13-1

Thus the buyer will be redirected to CashU payment page. A secure window will be displayed asking the buyer to enter his CashU account details and to enter the captcha code.

laravel cashu payment gateway

Click on the Pay button.


That’s all now the customer can see that the order has been placed using CashU Payment Method.


So, that was much about the User Guide of Laravel eCommerce CashU Payment Gateway for any queries or doubts reach out to us at [email protected]. You can also raise a ticket at our HelpDesk System.

Please explore our Laravel Development Services and Quality Bagisto Extensions.

Current Product Version - 1.2.0

Supported Framework Version - Bagisto v1.2.0

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content