Midtrans ❤️ OpenCart!
This is the official Midtrans extension for the OpenCart E-commerce platform.
- PHP v5.4 and higher
- Opencart v3.0
-
Download and extract the zip file.
-
Locate the root OpenCart directory of your shop via FTP connection.
-
Copy the
admin
,catalog
, andsystem
folders into your OpenCart's root folder, and merge it. -
In your OpenCart admin area, go to
Extensions
-Extensions
. -
Filter by
Payments
, scroll down untill you findMidtrans
. -
Click the
Install
green button and edit the plugin. -
Insert your merchant details.
- Fill Display name with text button that you want to display to customer.
- Fill Merchant Id with your Merchant Id Midtrans account.
- Select Environment, Sandbox is for testing transaction, Production is for real transaction.
- Fill in the client key & server key with your corresonding Midtrans account.
- Note: key for Sandbox & Production is different, make sure you use the correct one.
- SUCCESS Order Status select your desired order status when payment is success (recommended: Processing).
- PENDING Order Status select your desired order status when payment is failure (recommended: Pending).
- FAILURE Order Status select your desired order status when payment is pending (recommended: Canceled).
- Other configuration are optional, you can leave it as default.
-
Login into your Midtrans account and change the following options:
-
Payment Notification URL in Settings to
http://[your shop's homepage]/index.php?route=extension/payment/snap/payment_notification
-
Finish Redirect URL in Settings to
http://[your shop’s homepage]/index.php?route=extension/payment/snap/landing_redir&
-
Error Redirect URL in Settings to
http://[your shop’s homepage]/index.php?route=extension/payment/snap/landing_redir&
-
Unfinish Redirect URL in Settings to
http://[your shop’s homepage]/index.php?route=extension/payment/snap/landing_redir&