Midtrans Prestashop Payment Gateway Module
Midtrans Snap is an online payment gateway. They strive to make payments simple for both the merchant and customers. This plugin will allow online payment on your Prestashop store using various online payment channel.
Payment Method Feature:
- Midtrans Snap all payment method fullpayment
- Online & offline installment payment
- BIN, bank transfer, and other channel promo payment
- MIGS acquiring channel
- Custom expiry
- Custom fields
- Two-click & One-click feature
- Prestashop 1.6 & 1.7 or greater
- PHP version 5.4 or greater
- MySQL version 5.0 or greater
Installation & Configuration
- Download the modules from this repository.
- Extract the modules, then rename the folder modules as midtranspay and zip this modules as midtranspay.zip
- Go to your Prestashop administration page and go to "Modules and Services > Modules and Services" menu.
- Click on the "Add a new module" or "Add a new module" and locate the midtranspay.zip file, then upload it.
- Find the Midtrans Pay module in the module list and click install, then enable it.
- Find the Midtrans Pay module in the installed modules list and click configure
- Fill Payment Button Display Title with text button that you want to display to customer
- Select Environment, Sandbox is for testing transaction, Production is for real transaction
- Fill in the client key & server key with your corresonding Midtrans account credentials
- Note: key for Sandbox & Production is different, make sure you use the correct one.
- Map payment SUCCESS status to: select your desired order status when payment is success (recommended: Payment accepted).
- Map payment FAILURE status to: select your desired order status when payment is failure (recommended: Payment error).
- Map payment PENDING/CHALLENGE status to: select your desired order status when payment is challanged (recommended: Awaiting Midtrans payment).
- Other configuration are optional, you can leave it as default.
Midtrans MAP Configuration
- Login to your Midtrans Account, select your environment (sandbox/production), go to menu
settings > configuration
- Payment Notification URL:
- Finish Redirect URL:
- Unfinish Redirect URL:
- Error Redirect URL:
Customization (Optional, For Developer)
Feel free to change code if needed to customize the module. If you want to hide Midtrans logo or change any wordings, the frontend files are located here:
- Payment list:
- Payment confirmation:
- Payment page with popup:
For example, if you want to remove logo, just search for
Midtrans.png within those files or change the logo directly at
Separated Payment Buttons
If you do not prefer just 1 single payment button/options ("Online Payments") displayed to your customer, you can enable:
Enable Separated Bank Transfer Button from the module configuration menu. It will allow you display additional separated payment buttons like: