Skip to content

Paylike module for opencart 3 and 2.3.*+

License

Notifications You must be signed in to change notification settings

paylike/plugin-opencart-3

Repository files navigation

OpenCart plugin for Paylike Build Status

This plugin is not developed or maintained by Paylike but kindly made available by the community.

Released under the MIT license: https://opensource.org/licenses/MIT

You can also find information about the plugin here: https://paylike.io/plugins/opencart-3

Supported OpenCart versions

Last succesfull test

The plugin has been tested with most versions of Opencart at every iteration. We recommend using the latest version of Opencart, but if that is not possible for some reason, test the plugin with your OpenCart version and it would probably function properly.

Prerequisites

  • The plugin works with vQmod, but also with OCMOD, no need to install vQmod if you don't already need it.

Installation

Once you have installed OpenCart, follow these simple steps:

  1. Signup at paylike.io (it’s free)
  2. Create a live account
  3. Create an app key for your OpenCart website
  4. Upload the paylike.ocmod.zip file in the extensions uploader.
  5. Log in as administrator and click "Extensions" from the top menu then "extension" then "payments" and install the Paylike plugin by clicking the Install link listed there.
  6. Click the Edit Paylike button
  7. Select a store for your configuration
  8. Add the Public and App key that you can find in your Paylike account and enable the plugin
  9. Save the settings

Updating settings

Under the extension settings, you can:

  • Choose the OpenCart store to make settings for
  • Update the payment method text in the payment gateways list
  • Update the payment method description in the payment gateways list
  • Update the title that shows up in the payment popup
  • Add test/live keys
  • Set payment mode (test/live)
  • Change the capture type (Instant/Delayed)
  • Change the order statuses that the orders will get after a certain payment action is done (authorization/capture/refund/void)

How to capture / manage transactions

The transactions will show up under Sales -> Paylike Payments side menu. Here you can see capture/refund/void transactions depending on their status. Alternatively Paylike payments can be accessed from SITE_URL/admin/index.php?route=extension/payment/paylike/payments and they can be reached by clicking the green button at the top right of the extension settings page

In Delayed mode you can do transactions (full capture, refund, void) from admin panel, for each order info page, adding a history to the order. The Order Status that is wanted to be set for specific transaction must be identical with that set in Paylike extension page (Advanced section/tab). By default it is Completed for capture, Refunded for refund and Voided for void an order.

  1. Capture
    • In Instant mode, the orders are captured automatically
    • In Delayed mode you can do this in admin panel, order info page, adding Completed order status history to the order.
    • OR
    • In Delayed mode you can do this in admin panel Paylike Payments in Action section in the table.
  2. Refund
    • In Delayed mode you can do this in admin panel, order info page, adding Refunded order status history to the order.
    • OR
    • To Refund an order you can do this in admin panel Paylike Payments in Action section in the table.
  3. Void
    • In Delayed mode you can do this in admin panel, order info page, adding Voided order status history to the order.
    • OR
    • To Void an order you can do this in admin panel Paylike Payments in Action section in the table.

Available features

Multistore support

* The Paylike multi-store functionality allows the merchant to have different sets of keys for each store.
* You need to have a separate merchant account for a single store to keep Paylike transactions for each store independently.

Transactions

1. Capture
    * Opencart admin panel: full capture
    * Paylike admin panel: full/partial capture
2. Refund
    * Opencart admin panel: full/partial refund (only full refund from order view page)
    * Paylike admin panel: full/partial refund
3. Void
    * Opencart admin panel: full void
    * Paylike admin panel: full/partial void

Changelog

1.4.2:

  • Fixed amount calculation

1.4.1:

  • Fixed insert date for paylike transactions issued from admin panel

1.4.0:

  • Added multistore support

1.3.0:

  • Added logic to make a transaction on order status change (admin panel)

1.2.0:

  • Updated js SDK version to 10.js
  • Updated logic to work with SDK v10 version

1.1.1:

  • Added logic to convert currency code to uppercase

1.1.0:

  • Updated js sdk version to 6.js

1.0.9:

  • Fix infinite loading on the popup close

1.0.8:

  • Added backend key validation

1.0.7:

  • Update description text

1.0.6:

  • Version bump

1.0.5:

  • This release fixes a minor bug, showing up when using a quick checkout extension.

1.0.4:

  • Initial stable release
  • This is a stable release, that works for opencart 2.3.* and for opencart 3.*+ .
  • It can also be used as an update for https://github.com/paylike/plugin-opencart-2.3, all transactions will be ported, as the plugin is backward compatible.

1.0.0:

  • Initial version