Snap WooCommerce Integration Steps

  1. Plugin Installation
  2. Transaction Test


  1. Wordpress v3.9.1 or greater (tested up to v4.5.x)
  2. WooCommerce v2.1.11 or greater (tested up to v2.5.x)
  3. PHP v5.4 or greater
  4. MySQL v5.0 or greater
  5. Midtrans plugin for WooCommerce [ Github | Zip ].

Installation Process

  1. Download the plugin from this repository.
  2. Extract the plugin, then rename the modules folder as midtrans-woocommerce.
  3. Upload the unzipped plugin folder to your WordPress installation's wp-content/plugins/ directory.
  4. Install and activate the plugin from plugins menu within the WordPress admin panel
  5. Go to WooCommerce - Settings - Checkout - Midtrans menu, fill the configuration fields.

    • Fill Title with text button that you want to display to customer
    • Select Environment. Sandbox for testing transaction and Production for real transaction
    • Fill Client and Server key. You can find this credential on Midtrans MAP Dashboard.
      WooCommerce Setting

  6. Login to MAP portal to configure few options below:

    URL Role Redirect URL
    Payment Notification URL http://[your web]/?wc-api=WC_Gateway_Midtrans
    Finish Redirect URL http://[your web]/?wc-api=WC_Gateway_Midtrans
    Error Redirect URL http://[your web]/?wc-api=WC_Gateway_Midtrans
    Unfinish Redirect URL http://[your web]/?wc-api=WC_Gateway_Midtrans

1. Perform successful transaction in your online store by inputing a dummy credit card number as followed (Sandbox Mode):

Type Visa
Card Number 4811 1111 1111 1114
CVV 123
Exp. Month 01
Exp. Year 2020

2. Examine a few points below to ensure plugin is installed and performs properly.

Check Point Expected Result When Unexpected Result Occurs
Check order status in WooCommerce back end Order status recorded in backend Check endpoint/payment notification URL setting in MAP
Merchant receives email notification Receive notification Check MAP menu setting - email notification
Customer receives email notification Receive notification Check MAP menu setting - email notification