Snap Prestashop Integration Steps

  1. Plugin Installation
  2. Transaction Test


Requirements

  1. Prestashop v1.6 or greater.
  2. PHP v5.4 or greater.
  3. MySQL v5.0 or greater.
  4. Midtrans plugin for PrestaShop [ Github | Zip ].

Installation Process

  1. Extract the plugin you have previously downloaded and rename folder as midtranspay. Then Zip the folder back into midtranspay.zip.
  2. Go to your Prestashop administration page and go to Modules and Services - Modules and Services menu.
  3. Click on the Add a new module and locate the midtranspay.zip file, then upload it.
  4. Find the Midtrans Pay module in the module list and click install, then enable it.
  5. Find the Midtrans Pay module in the module list and click configure.

    • Fill Payment Button Display Title with text button that you want to display to customer.
    • Select Environment, Sandbox for testing transaction, Production for real transaction.
    • Fill in the client key & server key. You can find this credential on Midtrans MAP Dashboard.
    • Map payment SUCCESS status to: select your desired order status when payment is success.
    • Map payment FAILURE status to: select your desired order status when payment is failure.
    • Map payment PENDING/CHALLENGE status to: select your desired order status when payment is challenged.
    • Other configuration are optional, you may leave it as is.

    Prestashop config

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

    URL Role Redirect URL
    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
    Error Redirect URL http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=failure
    Pending Redirect URL http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=back


  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 PrestaShop back end Order status turns into payment accepted 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