If you haven’t done so already, head over and sign up with Paylike and create a live account.
Download the .zip file from releases and extract it. You get a folder called “plugin-oscommerce-0.2”. Inside there is a folder called “upload”. The files in it need to be uploaded to the root of the osCommerce website.
<?php
if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) {
?>
<script src="https://sdk.paylike.io/3.js"></script>
<script src="<?php echo DIR_WS_INCLUDES ?>javascript/paylike.js"></script>
<?php
}
?>
Browse to the Paylike modules and install it from “Modules” -> “Payment” in the admin, menu on the left.
Copy your public key and app key from the Paylike dashboard.
Insert the app key and your public key in the correct fields in the menu on the right and enable the plugin.
You’re all set. Paylike has now been setup successfully on your website and you are ready to accept payments!
In Instant mode, the orders are captured automatically. In delayed mode you can capture funds only from the Paylike dashboard.
To refund an order you can use the Paylike dashboard.
To void an order you can use the Paylike dashboard.
Read more about using the Paylike dashboard here.