Skip to content

01 Credit card fullpayment and other payment methods

Yocki edited this page Nov 16, 2016 · 3 revisions

Installation

Minimum Requirement

  • Prestashop v1.6 or greater.
  • PHP v5.4 or greater.
  • MySQL v5.0 or greater.

Manual Installation

  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 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 module 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. You can find this credential on Midtrans MAP Dashboard.

  • 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.

  • 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.

     ![Presta Settings](https://github.com/yocki-s/image-snap-repo/blob/master/image/snap-presta1.png)
    

Midtrans MAP Configuration

  1. Login to your Midtrans MAP Dashboard.
  2. Select your environment (sandbox or production)
    • Inserthttp://[your-site-url]/index.php?fc=module&module=midtranspay&controller=notification as your Payment Notification URL.
    • Insert http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=success as your Finish Redirect URL.
    • Insert http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=back as your Pending Redirect URL.
    • Insert http://[your-site-url]/index.php?fc=module&module=midtranspay&controller=failure as your Error Redirect URL.