Malaysia payment gateway for eCommerce
zarulizham/laravel-ecommerce-payment is a Laravel package for malaysia payment gateway for ecommerce.
It currently has 1 GitHub stars and 6.373 downloads on Packagist (latest version 2.0.9).
Install it with composer require zarulizham/laravel-ecommerce-payment.
Discover more Laravel packages by zarulizham
or browse all Laravel packages to compare alternatives.
Last updated
You can install the package via composer:
composer require zarulizham/laravel-ecommerce-payment
You can publish and run the migrations with:
php artisan vendor:publish --tag="ecommerce-payment-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="ecommerce-payment-config"
You can publish the controller file with:
php artisan vendor:publish --tag="ecommerce-payment-controller"
This is the contents of the published config file:
return [
'password' => env('ECOMMERCE_PASSWORD'),
'merchant_account_no' => env('ECOMMERCE_MERCHANT_ACCOUNT_NO'),
'payment_window_url' => env('ECOMMERCE_PAYMENT_WINDOW_URL'),
'direct_path' => env('ECOMMERCE_DIRECT_PATH'),
'direct_url' => env('ECOMMERCE_DIRECT_URL'),
'callback_path' => env('ECOMMERCE_CALLBACK_PATH'),
'callback_url' => env('ECOMMERCE_CALLBACK_URL'),
'transaction_type' => env('ECOMMERCE_TRANSACTION_TYPE', 2),
'response_type' => env('ECOMMERCE_RESPONSE_TYPE', 'HTTP'),
];
Sample .env
ECOMMERCE_PASSWORD=
ECOMMERCE_MERCHANT_ACCOUNT_NO=
ECOMMERCE_PAYMENT_WINDOW_URL=https://3dgatewaytest.ambankgroup.com/BPG/admin/payment/PaymentWindow.jsp
ECOMMERCE_DIRECT_PATH=BPG/ecommerce/redirect
ECOMMERCE_DIRECT_URL="${APP_URL}/BPG/ecommerce/redirect"
ECOMMERCE_CALLBACK_PATH=BPG/ecommerce/callback
ECOMMERCE_CALLBACK_URL="${APP_URL}/BPG/ecommerce/callback"
Optionally, you can publish the views using
php artisan vendor:publish --tag="ecommerce-payment-views"
To test: URL/ecommerce/initiate/payment
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.