Code Monkey home page Code Monkey logo

freekassa's Introduction

Класс для платежной системы FreeKassa

Отправка на страницу оплаты и принятие оповещений о платежах для (freekassa.ru)

PHP >= 7.4

Документация

docs.freekassa.ru

Установка

  • Скопировать папку scr, настроить пути через autoload или require_once

Начало работы

  • Создайте аккаунт на freekassa.ru
  • Создайте кассу, скопируйте параметры ID кассы, API КЛЮЧ КАССЫ, СЕКРЕТНОЕ СЛОВО 1 ,СЕКРЕТНОЕ СЛОВО 2

Использование

  • Для работы по API использовать FreeKassaApiMethods
  1. Создание ссылки на оплату
$orderId = '1234'; // uniq system order id
$order_amount = 1000; // Payment`s amount
$email = '[email protected]';
$ClassicKassa = new \FreeKassa\FreeKassaClassicMethods($merchant, $key, $secret, $secret2);
$payUrl = $ClassicKassa->getPayUrl($orderId,$order_amount,$email);
$ClassicKassa->redirectToPayUrl($orderId,$order_amount,$email);
  1. Обработка ответа от FreeKassa
$FreeKassa = new \FreeKassa\FreeKassa($merchant, $key, $secret, $secret2);

$FreeKassa->handler($_REQUEST,function ($id){
//your code
}); 

по умолчанию включен тестовый режим, поэтому проверки на разрешенные IP адреса от FreeKassa выключен

freekassa's People

Contributors

lostpunk avatar

Stargazers

 avatar

Watchers

 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.