Midtrans Modules Integrations For Paymenter
  • PHP 83.4%
  • Blade 16.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Muhammad Ari Al Ghifari 55fadefa8b
Fix Item Name and gross_amount
Error : 

[2026-04-07 12:45:50] production.ERROR: Midtrans payment request failed. {"response":{"error_messages":["item_details Name is too long","transaction_details.gross_amount is not equal to the sum of item_details"]}} 
[2026-04-07 12:48:24] production.ERROR: Midtrans payment request failed. {"response":{"error_messages":["item_details Name is too long","transaction_details.gross_amount is not equal to the sum of item_details"]}}
2026-04-07 14:15:24 +07:00
Photos Initial commit 2025-03-26 17:35:31 +07:00
resources/views Change Folder Structure 2025-07-21 07:46:26 +07:00
routes Allow CSRF bypass for Midtrans webhook route 2026-04-07 14:14:18 +07:00
.gitattributes Initial commit 2025-03-26 17:35:31 +07:00
LICENSE Initial commit 2025-03-26 17:35:31 +07:00
Midtrans.php Fix Item Name and gross_amount 2026-04-07 14:15:24 +07:00
README.md Update README.md 2025-07-21 08:03:20 +07:00

Installation

  • Manual: Download the code and place it in the app/Extensions/Gateways/Midtrans directory.
  • Automatic: git clone https://github.com/NekoMonci12/Paymenter-Midtrans /var/www/paymenter/extensions/Gateways/Midtrans

Configuration

In the admin panel, go to Settings > Payment Gateways and click on the Midtrans gateway. Enter Midtrans MerchantID/Server-Key/Client-Key then Save.

Usage

When a user selects the Midtrans gateway, they will be redirected to the Midtrans payment page. After the payment is completed, the user will be redirected back to the site.

Setup Callback On Midtrans

  1. Settings > SNAP Preferences > System Settings
Finish URL		= https://yourdomain.com
Unfinish URL		= https://yourdomain.com
Error Payment URL 	= https://yourdomain.com
  1. Settings > Payment > Finish Redirect URL
Finish Redirect URL	= https://yourdomain.com
  1. Settings > Payment > Notification URL
Notification URL			= https://yourdomain.com/extensions/midtrans/webhook
Recurring payment notification URL	= https://yourdomain.com
Account linking notification URL	= https://yourdomain.com