Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers
js
library/veritrans
logo
views
Midtrans.png
README.md
config.xml
cron_cancel_vt.php
index.php
logo.gif
logo.png
midtrans.jpg
midtranspay.php
mtpay_install.php
notification.php
order_confirmation.php
payment.php
validation.php

README.md

Midtrans  Prestashop Payment Gateway Module

Midtrans  ❤️ Prestashop! Integrate your Prestashop store with Midtrans  Snap payment gateway.

Description

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

Installation Instruction

Minimum Requirements

  • Prestashop 1.6 & 1.7 or greater
  • PHP version 5.4 or greater
  • MySQL version 5.0 or greater

Installation & Configuration

  1. Download the modules from this repository.
  2. Extract the modules, then rename the folder modules as midtranspay and zip this modules as midtranspay.zip
  3. Go to your Prestashop administration page and go to "Modules and Services > Modules and Services" menu.
  4. Click on the "Add a new module" or "Add a new module" and locate the midtranspay.zip file, then upload it.
  5. Find the Midtrans Pay module in the module list and click install, then enable it.
  6. 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

  1. Login to your Midtrans  Account, select your environment (sandbox/production), go to menu settings > configuration
    • Payment Notification URL:

    http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=notification

    • Finish Redirect URL:

    http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=success

    • Unfinish Redirect URL:

    http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=success

    • Error Redirect URL:

    http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=failure

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: /views/templates/hook/payment.tpl
  • Payment confirmation: /views/templates/front/payment_execution.tpl
  • Payment page with popup: /views/templates/front/snappay.tpl

For example, if you want to remove logo, just look for Midtrans.png or change the logo directly at /logo/ folder.

Get help

You can’t perform that action at this time.