OTP Payment integration for Magento 2
, (*1)
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)
Using Magento in DEV mode without cache is definitely recommended when you want to install module., (*6)
composer require youama/module-otp-2
php bin/magento setup:upgrade
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)
, (*33)
, (*34)
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"
This module created by David Belicza and published as a YOUAMA Software in 2014 and open sourced in 2018., (*36)
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)
, (*42)