Giter Club home page Giter Club logo

plugin-prestashop-1.7's Introduction

Prestashop 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/prestashop-1.7

Supported Prestashop versions

Last succesfull test

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

Installation

Once you have installed Prestashop, follow these simple steps:

  1. Signup at paylike.io (it’s free)
  2. Create a live account
  3. Create an app key for your Prestashop website
  4. Log in as administrator and click "Modules" from the left menu and then upload it clicking "UPLOAD A MODULE" form the top.
  5. Click the "Configure" button when done installing.
  6. Add the Public and App key that you can find in your Paylike account and enable the plugin and click save from the bottom.

One Page Supercheckout compatibility patch

  • Last tested on: One Page Supercheckout v6.0.9

In order to enable compatibility feature provided by our module, please change the content of the following files as described below: ---> File: prestashop_root/modules/supercheckout/views/js/front/supercheckout.js

  1. find line if ($('input:radio[name="payment_method"]:checked').hasClass('binary')) {:
  2. add the following code snippet before:
// Start: Changes for PAYLIKE PAYMENT MODULE
if (payment_module_name == 'paylikepayment') {
    PayLikePayment.init();
    PayLikePayment.pay();
    hide_progress();
    $("html, body").animate({scrollTop: $("#hosted-fields-form").offset().top}, "fast");
    return;
}
// END: Changes for PAYLIKE PAYMENT MODULE

Updating settings

Under the extension settings, you can:

  • 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
  • Update the popup description, choose whether you want to show the popup (the cart contents will show up instead)
  • Add test/live keys
  • Set payment mode (test/live)
  • Change the capture type (Instant/Manual via Paylike Tool)
  • Change the status of the order which is going to trigger a capture in delayed mode.

Refunding, voiding and capturing

  • To Refund an order make sure you checked the "Refund Paylike" checkbox durring the default Prestashop procedure for Partial Refund. Standard Refund and Return Product procedures also have this feature only for Prestashop version >= 1.7.7. Note: If for some reason the Refund procedure via Paylike fails, you will be notified and manual action will be required in your online Paylike Tool account.

  • To Void an order move the order status to "Canceled".

  • To Capture an order in delayed mode, use the status set in Paylike module settings (move the order to that status).

  • For Prestashop < 1.7.7 you can procede capture, void and refund actions via Paylike toolbox also.

Advanced

Due to the floating point precision issue with some numbers, it is recommended to have the bcmath extension installed.

Changelog

1.4.0:

  • replaced Tools class with Configuration class in paylikepayment.php file at L770 (to get actual module transaction mode "test/live")

1.3.0:

  • Updated js SDK to 10.js
  • Updated logic to work with SDK v10 version
  • Removed module version from other files

1.2.0:

  • Compatibility fixes for Prestashop version > 1.7.7.x
  • Updated tests

1.1.2:

  • One Page Supercheckout compatibility patch

1.1.1:

  • Update to js SDK 6.js

1.1.0:

  • Integration with One Page Checkout v4.0.10 - by PresTeamShop: Disable preloader after order payment popup is triggered

1.0.9:

  • Bug Fix: Check Terms & Conditions checkbox before order submission.
  • Bug fix - Disable the checkout button together with the checkbox

1.0.8:

  • Bug fix - Escape double quotes for json encoded products string

1.0.7:

  • Updated Travis
  • Compatibility fix - PHP 5.6 Tested on Prestashop 1.7.2.4 +
  • Bug fix - Replace deprecated window load event listener on checkout page
  • Add onepagecheckout support

1.0.6:

  • Added logic to validate the public and private keys upon saving.
  • Fixes - Code review
  • Updated tests

1.0.5:

  • Fix tests for newer PS versions
  • Add transaction id to payment storage

1.0.4:

  • Modified structure with tests
  • Fix rounding and add travis
  • Update testing info

1.0.3:

  • Update readme, refactor javascript

1.0.2:

  • Fixed translation issue

1.0.1:

  • Added zip file
  • Removed capture descriptor

1.0.0:

  • Initial commit

plugin-prestashop-1.7's People

Contributors

cosminbosutar avatar ionutcalara avatar luciandex avatar michaelrotaru avatar stefanghiban avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

plugin-prestashop-1.7's Issues

It's not compatible with the supercheckout module

It's not compatible with the supercheckout module.

SuperCheckout v5.0.9 - by Knowband

I have seen that, in /modules/paylikepayment/views/templates/hook/payment.tpl:166, PayLikePayment.init() is not executed.

Payment button bug

Hi,

I found a bug. If I not checked terms and condition box on order page and just clicking the paylike button appear the paylike overlay. Attached picture this bug.
paylike term codition bug

I use Prestashop 1.7.6.7, PHP 7.2 and default prestashop step by step checkout.

Best Regards

Error after the setup

After the install i try set up with keys but i got this:

"[PrestaShop] Fatal error in module file: /home/playameh/public_html/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Paylike" from namespace "Paylike". Did you forget a "use" statement for another namespace? in /home/playameh/public_html/modules/paylikepayment/paylikepayment.php:625 Stack trace: #0 /home/playameh/public_html/modules/paylikepayment/paylikepayment.php(234): PaylikePayment->validateAppKeyField('d3438fc6-85d6-4...', 'live') #1 /home/playameh/public_html/controllers/admin/AdminModulesController.php(906): PaylikePayment->getContent() #2 /home/playameh/public_html/controllers/admin/AdminModulesController.php(1165): AdminModulesControllerCore->postProcessCallback() #3 /home/playameh/public_html/classes/controller/Controller.php(194): AdminModulesControllerCore->postProcess() #4 /home/playameh/public_html/classes/Dispatcher.php(379): ControllerCore->run() #5 /home/playameh/public_html/admin098qapa86/index.php(95): DispatcherCore->dispatch() #6 {main} Next LogicException: Request stack is empty in /home/playameh/public_html/a"

Prestashop is 1.7.2

What is the soultion? Earlier version? I cannot update the prestashop ...

The getPaylikeAmount(...) call is passing a incorrect value for $currency_iso_code argument.

The method getPaylikeAmount( $total, $currency_iso_code ) waits for a currency iso code at second argument, but at the line 750, you have passed the $currency_multiplier variable value instead of a valid currency iso code value like the $currency_code variable value at line 748.

$currency_code = $currency->iso_code;
$currency_multiplier = $this->getPaylikeCurrencyMultiplier( $currency->iso_code );
$amount = $this->getPaylikeAmount( $params['cart']->getOrderTotal(), $currency_multiplier );

payment not display

hello , payment paylike is not display when come to pay page in prestashop. i have made different test. payment is not display because it is related to hook "payment" , but its not the good hook , for exemple i have no issue with stripe or paypal because they are both related to hook "paymentoptions" , paylike is related only to "payment" , can find a way to change this ? iam under 1.7.4.2

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.