This plugin is not developed or maintained by Paylike but kindly made available by a user.
Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
Once you have installed osCommerce, follow these simple steps:
-
Signup at paylike.io (it’s free)
-
Create a live account
-
Create an app key for your osCommerce website
-
Upload the files in the
uploadfolder to root of your osCommerce store.NOTE:
To skip steps 5 - 7, upload
phoenixautochange.phpfile to your osCommerce store root.
Then accessYOUR_WEB_URL/phoenixautochange.phpin browser address bar.
Will show log/success messages based on script status and the filephoenixautochange.phpwill be deleted.
Then go to step 8. -
In:
includes/application_top.phpadd:if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) { echo '<script src="https://sdk.paylike.io/10.js"></script>'; echo '<script src= "includes/javascript/paylike.js"></script>'; }After the last line.
-
In:
includes/.htaccessadd:<FilesMatch "paylike.php"> Require all granted </FilesMatch>After the last line.
-
In:
admin/modules.php7.1.Add:require_once('includes/modules/payment/paylike/errors.php');Before require 'includes/application_top.php'; line;
7.2.Add:
require_once('includes/modules/payment/paylike/validate.php');After case 'save': line;
7.3.Replace tep_db_query("UPDATE configuration SET configuration_value = '" . tep_db_input($value) . "' WHERE configuration_key = '" . tep_db_input($key) . "'"); line with:
if(sizeof($errors) === 0 || array_search($key, $validation_keys) === FALSE){ tep_db_query("UPDATE configuration SET configuration_value = '" . tep_db_input($value) . "' WHERE configuration_key = '" . tep_db_input($key) . "'"); }7.4.Add:
if(sizeof($errors)){ tep_redirect(tep_href_link('modules.php', 'set=' . $set . '&module=' . $_GET['module'] . '&action=edit')); }Before tep_redirect(tep_href_link('modules.php', 'set=' . $set . '&module=' . $_GET['module'])); line;
7.5.Add:
<?php if(isset($errorHandler))$errorHandler->display(); ?>Before
<div class="row no-gutters">line. -
Install the Paylike module from modules -> payment in the admin
-
Insert the app key and your public key in the settings and enable the plugin
Under the Paylike settings, you can:
- 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)
- Capture
- In Instant mode, the orders are captured automatically
- In delayed mode you can capture funds only from the paylike dashboard.
- Refund
- To refund an order you can use the paylike dashboard.
- Void
- To void an order you can use the paylike dashboard.