Skip to content
Official Midtrans Payment API Client (SNAP) for Drupal 7
Branch: master
Clone or download
aalexanderkevin Merge pull request #13 from aalexanderkevin/master
add log message when get transaction notif from midtrans
Latest commit ba0865c Mar 20, 2019

Midtrans Drupal Commerce Payment Gateway Module

Midtrans ❤️ Drupal! Let your Drupal Commerce store integrated with Midtrans payment gateway.


This is the official Midtrans extension for the Drupal Commerce E-commerce platform.


7.x-2.0.8 (for Drupal v 7.x)


The following plugin is tested under following environment:

Installation Process

The manual installation method involves downloading our feature-rich plugin and uploading it to your webserver via your favourite FTP application.

  1. Download the plugin file to your computer and unzip it, rename folder to commerce_midtrans
  2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your Drupal modules installation's [Drupal folder]/sites/all/modules/ directory.

(Refer to this link for more info on installing module for drupal: Drupal module install )

Plugin Configuration

  1. Open drupal admin page, open menu modules.

  2. Look for Commerce Midtrans and Midtrans Snap modules under COMMERCE (PAYMENT) group, enable both by ticking the checkboxes.

  3. Scroll down and click Save Configuration

  4. Go to store > configure store > payment methods

  5. Look for Midtrans and click it

  6. Click Settings, tick active, then click save changes

  7. Click Enable payment method: Midtrans SNAP under Tab Actions

  8. Fill the following config fields as instructed on each settings description

  9. Click save.

  10. Now Snap Midtrans should appear as a payment options when your customer checkout.

Midtrans Map Configuration

  1. Go to Settings > Configuration
  2. Insert http://[your web]/commerce_midtrans/ipn as your Payment Notification URL in your MAP
  3. Insert http://[your web] link as Finish/Unfinish/Error Redirect URL in your MAP configuration.

Get help

You can’t perform that action at this time.