GithubHelp home page GithubHelp logo

tasdan / magento2-payment-module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from begateway/magento2-payment-module

0.0 1.0 0.0 60 KB

Magento 2 payment module to start accepting payments via beGateway platform

License: Open Software License 3.0

PHP 92.39% HTML 2.15% CSS 0.46% JavaScript 4.99%

magento2-payment-module's Introduction

beGateway Payment Module for Magento 2 CE

Русская версия

This is a Payment Module for Magento 2 Community Edition, that gives you the ability to process payments through payment service providers running on beGateway platform.

Requirements

  • Magento 2 Community Edition 2.x (Tested up to 2.1.3)
  • beGateway PHP API library v2.7.x - (Integrated in Module)
  • PCI DSS certified server in order to use beGateway Direct

Note: this module has been tested only with Magento 2 Community Edition, it may not work as intended with Magento 2 Enterprise Edition

Installation (composer)

  • Install Composer - Composer Download Instructions

  • Install beGateway Gateway

    • Install Payment Module

      $ composer require begateway/magento2-payment-module
    • Enable Payment Module

      $ php bin/magento module:enable BeGateway_BeGateway
      $ php bin/magento setup:upgrade
    • Deploy Magento Static Content (Execute If needed)

      $ php bin/magento setup:static-content:deploy

Installation (manual)

  • Download the Payment Module archive, unpack it and upload its contents to a new folder <root>/app/code/BeGateway/BeGateway/ of your Magento 2 installation

  • Install beGateway PHP API Library

    $ composer require begateway/begateway-api-php
  • Enable Payment Module

    $ php bin/magento module:enable BeGateway_BeGateway --clear-static-content
    $ php bin/magento setup:upgrade
  • Deploy Magento Static Content (Execute If needed)

    $ php bin/magento setup:static-content:deploy

Configuration

  • Login inside the Admin Panel and go to Stores -> Configuration -> Sales -> Payment Methods
  • If the Payment Module Panel beGateway is not visible in the list of available Payment Methods, go to System -> Cache Management and clear Magento Cache by clicking on Flush Magento Cache
  • Go back to Payment Methods and click the button Configure under the payment method beGateway Checkout or beGateway Direct to expand the available settings
  • Set Enabled to Yes, set the correct credentials, select your prefered transaction types and additional settings and click Save config

Configure Magento over secured HTTPS Connection

This configuration is needed for beGateway Direct Method to be usable.

Steps:

  • Ensure you have installed a valid SSL Certificate on your Web Server & you have configured your Virtual Host correctly.
  • Login to Magento 2 Admin Panel
  • Navigate to Stores -> Configuration -> General -> Web
  • Expand Tab Base URLs (Secure) and set Use Secure URLs on Storefront and Use Secure URLs in Admin to Yes
  • Set your Secure Base URL and click Save Config
  • It is recommended to add a Rewrite Rule from http to https or to configure a Permanent Redirect to https in your virtual host

Test data

If you setup the module with default values, you can use the test data to make a test payment:

  • Shop Id 361
  • Shop Secret Key b8647b68898b084b836474ed8d61ffe117c9a01168d867f24953b776ddcb134d
  • Checkout Domain checkout.begateway.com
  • Gateway Domain demo-gateway.begateway.com

Test card details

  • Card number 4200000000000000
  • Card name John Doe
  • Card expiry date 01/20 to get a success payment
  • Card expiry date 10/20 to get a failed payment
  • CVC 123

Модуль оплаты beGateway для Magento 2 CE

Модуль оплаты для Magento 2 Community Edition, который даст вам возможность начать принимать платежи через провайдеров платежей, использующих платформу beGateway.

Требования

  • Magento 2 Community Edition 2.x (тестировалось на версиях до 2.1.3)
  • beGateway PHP API библиотека v2.7.x - (поставляется с модулем)
  • PCI DSS сертифицированный сервер, чтобы принимать платежи через beGateway Direct

Примечание: этот модуль тестировался только с Magento 2 Community Edition и может работать не стабильно с Magento 2 Enterprise Edition

Установка (composer)

  • Установите Composer - инструкция по установке Composer

  • Установите beGateway Gateway

    • Установите модуль оплаты

      $ composer require begateway/magento2-payment-module
    • Включите модуль оплаты

      $ php bin/magento module:enable BeGateway_BeGateway
      $ php bin/magento setup:upgrade
    • Создайте статичный контент Magento (выполните если необходимо)

      $ php bin/magento setup:static-content:deploy

Установка (ручная)

  • Скачайте архив модуля, распакуйте его и скопируйте его содержимое в новую директорию <root>/app/code/BeGateway/BeGateway/ вашей Magento 2 инсталляции

  • Установите beGateway PHP API библиотеку

    $ composer require begateway/begateway-api-php
  • Включить модуль оплаты

    $ php bin/magento module:enable BeGateway_BeGateway --clear-static-content
    $ php bin/magento setup:upgrade
  • Создайте статичный контент Magento (выполните если необходимо)

    $ php bin/magento setup:static-content:deploy

Настройка

  • Войдите в личный кабинет администратора и перейдите в Магазины -> Конфигурация -> Продажи -> Методы оплаты
  • Если панель модуля оплаты beGateway не видна в списке доступных методов оплаты, то перейдите в Система -> Управление кэшем и очистите Magento кэш, нажав Очистить кэш Magento
  • Вернитесь назад в Методы оплаты и нажмите кнопку Настроить под способом оплаты beGateway Checkout или beGateway Direct, чтобы раскрыть доступные настройки
  • Выберите Да в выпадающем списке параметра Включено, задайте данные вашего магазина, выберите тип операции, доступные способы оплаты и прочие настройки. Нажмите Сохранить конфигурацию, чтобы их сохранить

Настройть Magento для работы через шифрованное соединение

Данная настройка необходима для использования способа оплаты beGateway Direct.

Шаги (названия параметров могут отличаться из-за различных пакетов русификации Magento):

  • Убедитесь, что вы установили рабочий SSL сертификат на вашем веб-сервере и произвели необходимые настройки.
  • Зайдите в панель администратора Magento 2
  • Перейдите в Магазины -> Конфигурация -> Основное -> Веб
  • Раскройте закладку Базовые URLs (безопасные) и установите Использовать защищённые URL в магазине и Использовать защищённые URL в панели администрирования в Да
  • Задайте ваш Базовый защищённый URL и нажмите Сохранить конфигурацию
  • Рекомендуем добавить Rewrite Rule с http на https или настроить Permanent Redirect на https в настройках вашего веб-сервера

Тестовые данные

Вы можете использовать приведенные ниже тестовые данные, чтобы протестировать оплату.

  • Id магазина 361
  • Секретный ключ магазина b8647b68898b084b836474ed8d61ffe117c9a01168d867f24953b776ddcb134d
  • Домен страницы оплаты checkout.begateway.com
  • Домен платежного шлюза demo-gateway.begateway.com

Тестовая карта

  • Номер карты 4200000000000000
  • Имя на карте John Doe
  • Срок действия для успешной оплаты 01/20
  • Срок действия для неуспешной оплаты 10/20
  • CVC 123

magento2-payment-module's People

Contributors

avsh avatar

Watchers

Tasi Daniel avatar

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.