Giter Club home page Giter Club logo

plugin-oscommerce's Introduction

osCommerce plugin for Paylike

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

Supported osCommerce versions Last succesfull test

Installation

Once you have installed osCommerce, follow these simple steps:

  1. Signup at paylike.io (it’s free)

  2. Create a live account

  3. Create an app key for your osCommerce website

  4. Upload the files in the upload folder to root of your osCommerce store.

    NOTE:

    To skip steps 5 - 7, upload oscautochange.php file to your osCommerce store root.
    Then access YOUR_WEB_URL/oscautochange.php in browser address bar.
    Will show log/success messages based on script status and the file oscautochange.php will be deleted.
    Then go to step 8.

  5. In: includes/template_top.php add:

    <?php if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) : ?>
        <script src= "includes/javascript/paylike.js"></script>
    <?php endif ?>
    

    Anywhere between the head tags.

  6. In: includes/.htaccess add:

    <FilesMatch "paylike.php">
       Allow from all
    </FilesMatch>
    

    After the last line.

  7. In: admin/modules.php 7.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 reset($HTTP_POST_VARS['configuration']); line;

    7.3.Replace tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); line with:

    if(sizeof($errors) === 0 || array_search($key, $validation_keys) === FALSE){
      tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
    }
    

    7.4.Add:

    if(sizeof($errors)){
      tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=edit'));
    }
    

    Before tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); line;

    7.5.Add:

    if(isset($errorHandler))$errorHandler->display();
    

    After case 'edit': line.

  8. Install the Paylike module from modules -> payment in the admin (click on Install Module botton in the right corner)

  9. Insert the app key and your public key in the settings and enable the plugin

Updating settings

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)

How to

  1. Capture
  • In Instant mode, the orders are captured automatically
  • In delayed mode you can capture funds only from the paylike dashboard.
  1. Refund
  • To refund an order you can use the paylike dashboard.
  1. Void
  • To void an order you can use the paylike dashboard.

plugin-oscommerce's People

Contributors

cosminbosutar avatar ionutcalara avatar luciandex avatar michaelrotaru avatar stefanghiban avatar

Watchers

 avatar  avatar  avatar

Forkers

michaelrotaru

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.