Giter VIP home page Giter VIP logo

swedbankpay / swedbank-pay-magento2-checkout Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 489 KB

Swedbank Pay Checkout for Magento 2 (Beta)

Home Page: https://marketplace.magento.com/swedbank-pay-magento2-checkout.html

License: Apache License 2.0

PHP 83.27% JavaScript 9.85% CSS 4.28% HTML 2.60%
swedbank-pay-checkout swedbankpay-checkout magento-marketplace payment-gateway magento magento2 magento-extension magento-extension-free swedbank-pay swedbankpay module

swedbank-pay-magento2-checkout's Introduction

Swedbank Pay Checkout for Magento 2

Build Status Latest Stable Version Total Downloads License

Swedbank Pay Magento 2 Checkout

About

UNSUPPORTED: This extensions is at an early stage of development and is not supported as of yet by Swedbank Pay. It is provided as a convenience to speed up your development, so please feel free to play around. However, if you need support, please wait for a future, stable release.

The Official Swedbank Pay Checkout Extension for Magento 2 provides seamless integration with Swedbank Pay Checkout, allowing your customers to pay swiftly and securely with credit card, invoice (Norway and Sweden), Vipps (Norway) and Swish (Sweden). Credit card payments are available world-wide.

Requirements

  • Magento Open Source/Commerce version 2.2 or newer
  • A Swedbank Pay merchant account, read more and contact us to get one.

Please Note: When your Swedbank Pay Merchant Account is created, there are a few things you need to attend to before you can start using it.

Installation

Swedbank Pay Checkout for Magento 2 may be installed via Magento Marketplace or Composer.

Magento Marketplace

If you have linked your Marketplace account to your Magento 2 store, you may install the Swedbank Pay Checkout for Magento 2 with the Magento Component Manager.

For installation using the Component Manager, please see the official guide.

Composer

Swedbank Pay Checkout for Magento 2 can alternatively be installed via composer with the following instructions:

  1. In the Magento root directory enter command:

    composer require swedbank-pay/magento2-checkout --no-update
  2. Install module and required packages:

    composer update swedbank-pay/magento2-checkout --with-dependencies
  3. Enable the modules:

    bin/magento module:enable --clear-static-content SwedbankPay_Core SwedbankPay_Checkout
  4. Upgrade setup:

    bin/magento setup:upgrade
  5. Compile:

    bin/magento setup:di:compile
  6. Clear the cache:

    bin/magento cache:clean

Configuration

Swedbank Pay Checkout configuration can be found under Stores > Configuration > Sales > Payment Methods > Swedbank Pay > Configure.

As parts of the Swedbank Pay Checkout installation we have Core, Checkout and Payment Menu with configurable options as follows:

Core

  • Enabled: Status of the module.
  • Merchant Account: Your Swedbank Pay Merchant Account ID.
  • Payee ID: Your Swedbank Pay Payee ID.
  • Payee Name: Your Swedbank Pay Payee Name.
  • Test Mode: Only disable in live production site.
  • Debug Mode: Enable this for more in-depth logging, should be off by default.

Checkout

  • Enabled: Status of the module.
  • Required: Enable to require checkin in checkout.

Payment Menu

  • Enabled: Enable to active Swedbank Pay payment menu.
  • Terms of Service Page: Set page to link as terms of service page in checkout.

FAQ

Q: Is it possible to disable customer's checkin?
A: The checkin part of the module can be made optional by allowing guest login. This can be done by setting Checkin Required to No inside Checkout Configuration

Q: How can we test the module using test credentials?
A: To be able to use test credentials, you can enable test mode by setting Test Mode to Yes inside Core Configuration. For in-depth logging, you can also enable debug mode by setting Debug Mode to Yes

Please note: Remember to disable Test Mode in production site as test credentials should only be used for testing purposes.

Support

To find the customer service available in your country, please visit the Swedbank Pay website.

Release Notes

  • 1.1.0: October 2019 - Now known as Swedbank Pay Checkout and with improved 1-phase payments support.

  • 1.0.0: May 2019 - First official release.

License

Swedbank Pay Checkout for Magento 2 is released under Apache V2.0 licence.

swedbank-pay-magento2-checkout's People

Contributors

asbjornu avatar dependabot-preview[bot] avatar dependabot[bot] avatar samtroll avatar shahriar-vdc avatar tobiaslufinity avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

swedbank-pay-magento2-checkout's Issues

Workflows are referencing vulnerable actions

Hello, there!

As part of the university research we are currently doing regarding the security of Github Actions, we noticed that one or many of the workflows that are part of this repository are referencing vulnerable versions of the third-party actions. As part of a disclosure process, we decided to open issues to notify GitHub Community.

Please note that there are could be some false positives in our methodology, thus not all of the open issues could be valid. If that is the case, please let us know, so that we can improve on our approach. You can contact me directly using an email: ikoishy [at] ncsu.edu

Thanks in advance

  1. The workflow php.yml is referencing action gittools/actions/gitversion/setup using references v0.9.9. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
  2. The workflow php.yml is referencing action gittools/actions/gitversion/execute using references v0.9.9. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.

The vulnerability fix that is missing by actions' versions could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider updating the reference to the action.

If you end up updating the reference, please let us know. We need the stats for the paper :-)

Config does not respect Scope

Even when inactivating the module in Default Config but enable it in a Website the checkout remain disabled in the frontend.

This is cause by the isActive function SwedbankPay\Core\Helper\Config.php which takes a store as argument but it is not passed in any of the occurrences.

Installed but disabled module causes the saving of quote to malfunction

If the module is installed but disabled a customer can't add products to the cart.
This is due to a incorrect plugin in the code.

The class SwedbankPay\Checkout\Plugin\QuoteRepositoryPlugin contains the plugin aroundSave which returns null if the module is disabled.
This need to let the function to proceed and this is done by returning $proceed($quote).

So
if (!$this->config->isActive()) { return null; }
needs to be replaced with
if (!$this->config->isActive()) { return $preceed($quote); }

Error while creating an order in admin

When module is active and you create an order in admin the following error message appears:
"The Quote that was requested doesn't exist. Verify the Magento Quote id and try again."
The order gets created but you are redirected back to the "Create new order" and not to the created order as intended.

The issue is created in for example SwedbankPay\Checkout\Plugin\OrderRepositoryPlugin.php which tries to fetch the Swedbank Quote which is not created during the order creation in admin on line 92.
The exception is then catched in Magento\Sales\Controller\Adminhtml\Order\Create\Save.php.
This is caused on multiple places in the code where the non existing Swedbank Quote is fetched.

Possible Solutions
As admin orders can only be created with offline payments Swedbank should not have any involvement with these orders the best solution should be to encapsulate every method trying to fetch a non existing Swedbank Quote with a "try catch"

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.