2017 © Pedro Peláez
 

magento2-module module-otp-2

OTP Payment integration for Magento 2

image

youama/module-otp-2

OTP Payment integration for Magento 2

  • Sunday, February 18, 2018
  • by DavidBelicza
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 300 % Grown

The README.md

OTP Bank Payment Method Module to Magento 2

, (*1)

Latest Stable Version License: MIT, (*2)

This source code is a Magento module what provides a Payment itengration between Magento 2 ecommerce platform and OTP Bank Direct. The module creates a new Payment method "OTP" and allow to pay orders through OTP Bank. The source code is under The MIT licence from 2018.02.18., (*3)

You can disable/enable the module and you can customize it by Magento admin interface. The module supports multiple languages, currencies and stores., (*4)

This module and the OTP online payment service are not same. You have to contact to OTP, make a commercial licence and then you can use OTP payment in your shop. You can use only the common OTP demo if you don't have contract with the bank., (*5)

System requirements

  • Working Magento Community Edition.
  • At least Magento version 2.0.
  • Working Cron.
  • OTP licence (only for production version).

Install

Using Magento in DEV mode without cache is definitely recommended when you want to install module., (*6)

  • Get the source, for example you can use Composer: composer require youama/module-otp-2
  • Setup: php bin/magento setup:upgrade

Payment system process

  1. The customer places an order on the Checkout of the webshop.
  2. The module computes the order and sends it to the OTP payment system.
  3. The module redirects the customer to the OTP payment user interface.
  4. The customer pays by a credit card and the OTP makes the payment transaction immediately.
  5. If the customer didn't close the browser then the Bank redirects the user back to the Magento webshop and the bank sends a message to the webshop about the status of payment.
  6. The module sends a message to the customer about status of the payment.
  7. If the customer closed the browser, the bank can't redirects the customer back to the shop and it can't notifies the customer. In this case, the scheduled process of the module synchronizes the payment statuses of the unfinished orders from the bank and it sends notifies about status of the payment.

Settings

Setup page, (*7)

You can find the configuration place on System -> Configuration -> Sales -> Payment methods -> Youama OTP., (*8)

Enabled, (*9)

You can disable or enable the whole payment method in website scope., (*10)

Private key, (*11)

You can add your own private key file in website scope - given by OTP Bank., (*12)

POS ID, (*13)

This is the ID of the shop in website scope - given by OTP Bank., (*14)

Currency, (*15)

Hungarian Forint, USD or Euro. Currency code, defined by OTP bank. This is the order currency. (Website scope.), (*16)

Language, (*17)

The language of OTP payment user interface. (Website scope.), (*18)

Shop Comment, (*19)

A short title or description on payment user interface of OTP. (Store view.), (*20)

Title, (*21)

Title of OTP payment in Checkout of Magento. (Store view.), (*22)

Success url, (*23)

When customer payment was successful, he arrives to this page. (Store view.), (*24)

Fail url, (*25)

When customer payment was failed, he arrives to this page. It should be a CMS page. (Store view.), (*26)

Cancel order, (*27)

When customer's order has failed payment, the module changes the status or the state of the order. It can cancels order by automatically or only notifies the user. (Website scope.), (*28)

Paid message, (*29)

Customer gets notify by automatically when his order has been paid status. This notify contains a short HTML message. (Store view.), (*30)

Unpaid message, (*31)

Customer gets notify by automatically when his order have been unpaid status. This notify contains a short HTML message. (Store view.), (*32)

OTP Payment UI

, (*33)

, (*34)

Testing

Test Cron

Run Cron Job manually from Magento CLI API to sync all not finished payment and change their status and their order/payment/transaction state., (*35)

  • php bin/magento cron:run --group="youama_otp"

Test Card Data

  • Card number: 4908 3660 9990 0425
  • Expires: 2014.10
  • Cvc2 code: 823

Author

This module created by David Belicza and published as a YOUAMA Software in 2014 and open sourced in 2018., (*36)

Licence

THE MIT LICENCE, (*37)

Copyright 2018 David Belicza, (*38)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*39)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*40)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*41)

History

  • 2018 Open sourced under MIT licence.
  • 2016 release a new major version to Magento 2.
  • 2015 publish on Magento Connect under unique licence.
  • 2014 beta to Magento 1.

, (*42)

The Versions

18/02 2018

dev-master

9999999-dev

OTP Payment integration for Magento 2

  Sources   Download

proprietary

18/02 2018

1.0.5

1.0.5.0

OTP Payment integration for Magento 2

  Sources   Download

proprietary