Code Monkey home page Code Monkey logo

paycom-integration-php-template's Introduction

NOTE

Please, use the following up to date repo instead https://github.com/PaycomUZ/paycom-integration-php-template

Paycom integration template

Prerequisites

  • PHP 5.4 or greater
  • PDO extension
  • Composer dependency manager

Installation via Composer

Change current directory to your project folder and install package:

cd my-shop-project
composer create-project paycom/integration-template

Installation via Git

git clone https://github.com/umidjons/paycom-integration-php-template.git
cd paycom-integration-php-template
composer dumpautoload

From now you can use classes from package as following:

<?php
// File `my-shop-project/api/index.php`
require_once 'vendor/autoload.php';

use Paycom\Application;

// load configuration
$paycomConfig = require_once 'paycom.config.php';

$application = new Application($paycomConfig);
$application->run();

Make copy of paycom.config.sample.php as paycom.config.php and set your real settings there.

Assuming your domain as https://myshop.uz, now you can set entry point URL to handle requests from Paycom as https://myshop.uz/api/index.php.

paycom-integration-php-template's People

Contributors

umidjons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paycom-integration-php-template's Issues

Прохождение авторизации

Здравствуйте, Умид. Для получения доступа к апи, мне не удаётся пройти базовую авторизацию.

В качестве данных аутентификации я привожу:
login: Paycom (как в примере)
password: key (получен из Paycom Merchants).

Response:
{ "error":{"message":"Access deniet.", "code":-32504, "data": "invalid_authorization_header"}, "jsonrpc":"2.0" }

В платформе тестирования все запросы завершаются с ошибкой -32504

Спасибо.

Invalid JSON RPC. В чем может быть проблема?

При запуске выдает такую. Исключение PaycomExeption
П.С. в тестах в песочнице выводит что для данного метода нет привелегий.
И в сurl также. Может быть сумбурно. Я использую эту репо в боевых условиях. Доках мало инфы.

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.