veritrans / SNAP-Prestashop

MIT License
2 stars 9 forks source link

Midtrans  Prestashop Payment Gateway Module

Midtrans  :heart: 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:

Live Demo

Want to see Midtrans Prestashop payment module in action? We have some demo web-stores for Prestashop that you can use to try the payment journey directly, click the link below.

Installation Instruction

Minimum Requirements

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:

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

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:

Get help