Skip to content

Commit

Permalink
Initial commit: implemented purchase reqeust
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 20, 2019
0 parents commit 32b9724
Show file tree
Hide file tree
Showing 22 changed files with 882 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# hidev internals
/.hidev/composer.json
/.hidev/composer.lock
/.hidev/runtime
/.hidev/vendor

# local config
/.env
/hidev-local.yml

# IDE & OS files
.*.swp
.DS_Store
.buildpath
.idea
.project
.settings
Thumbs.db
nbproject

# composer internals
/composer.lock
/vendor

# php-cs-fixer cache
.php_cs.cache

# phpunit generated files
coverage.clover

# Binaries
chkipper.phar
composer.phar
ocular.phar
php-cs-fixer.phar
phpstan.phar
phpunit-skelgen.phar
phpunit.phar
17 changes: 17 additions & 0 deletions .hidev/commits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
hiqdev/omnipay-epayments commits history
----------------------------------------

## Under development

- Changed: redone to `omnipay-epayments`
- d1f2a10 2015-12-10 removed assets, now in `payment-icons` (sol@hiqdev.com)
- 88f8da8 2015-11-06 started redoing to `omnipay-epayments` (sol@hiqdev.com)
- Added basics
- f3bbab5 2015-10-31 fixed `_secret` <- `secret` (sol@hiqdev.com)
- 9211211 2015-10-30 changed: redone to `system` <- `name` (sol@hiqdev.com)
- 4d50cb7 2015-10-23 php-cs-fixed (sol@hiqdev.com)
- 3ab6f25 2015-10-23 hideved (sol@hiqdev.com)
- 80291d6 2015-10-23 inited (sol@hiqdev.com)

## Development started 2015-10-23

54 changes: 54 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php

$header = <<<EOF
Yandex.Kassa driver for Omnipay payment processing library
@link https://github.com/hiqdev/omnipay-yandex-kassa
@package omnipay-yandex-kassa
@license MIT
@copyright Copyright (c) 2019, HiQDev (http://hiqdev.com/)
EOF;

return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
'header_comment' => [
'header' => $header,
'separate' => 'bottom',
'location' => 'after_declare_strict',
'commentType' => 'PHPDoc',
],
'binary_operator_spaces' => [
'default' => null,
],
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
'blank_line_before_return' => false,
'phpdoc_align' => false,
'phpdoc_scalar' => false,
'phpdoc_separation' => false,
'phpdoc_to_comment' => false,
'method_argument_space' => false,
'ereg_to_preg' => true,
'blank_line_after_opening_tag' => true,
'single_blank_line_before_namespace' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'pre_increment' => true,
'strict_comparison' => true,
'strict_param' => true,
'no_multiline_whitespace_before_semicolons' => true,
'semicolon_after_instruction' => false,
'yoda_style' => false,
))
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('vendor')
->notPath('runtime')
->notPath('web/assets')
)
;
14 changes: 14 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
checks:
php:
code_rating: true
duplication: true
tools:
php_code_coverage:
enabled: true
external_code_coverage:
timeout: 600
build:
nodes:
analysis:
tests:
override: [php-scrutinizer-run]
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php
php:
- 7.1
dist: trusty
cache:
directories:
- $HOME/.composer/cache
before_install:
- 'composer self-update'
- 'composer --version'
- 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar'
- './hidev.phar --version'
- './hidev.phar travis/before-install'
sudo: false
install:
- './hidev.phar travis/install'
script:
- './hidev.phar travis/script'
after_script:
- './hidev.phar travis/after-script'
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright © 2019, HiQDev (http://hiqdev.com/)

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:

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

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.
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Omnipay: ePayments

**Yandex.Kassa driver for Omnipay payment processing library**

[![Latest Stable Version](https://poser.pugx.org/hiqdev/omnipay-yandex-kassa/v/stable)](https://packagist.org/packages/hiqdev/omnipay-yandex-kassa)
[![Total Downloads](https://poser.pugx.org/hiqdev/omnipay-yandex-kassa/downloads)](https://packagist.org/packages/hiqdev/omnipay-yandex-kassa)
[![Build Status](https://img.shields.io/travis/hiqdev/omnipay-yandex-kassa.svg)](https://travis-ci.org/hiqdev/omnipay-yandex-kassa)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/hiqdev/omnipay-yandex-kassa.svg)](https://scrutinizer-ci.com/g/hiqdev/omnipay-yandex-kassa/)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/omnipay-yandex-kassa.svg)](https://scrutinizer-ci.com/g/hiqdev/omnipay-yandex-kassa/)
[![Dependency Status](https://www.versioneye.com/php/hiqdev:omnipay-yandex-kassa/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:omnipay-yandex-kassa/dev-master)

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment
processing library for PHP 5.3+.

This package implements [ePayments](https://epayments.com/) support for Omnipay.

## Installation

The preferred way to install this library is through [composer](http://getcomposer.org/download/).

Either run

```sh
php composer.phar require "hiqdev/omnipay-yandex-kassa"
```

or add

```json
"hiqdev/omnipay-yandex-kassa": "*"
```

to the require section of your composer.json.

## Basic Usage

The following gateway is provided by this package:

* [ePayments](http://epayments.com/)

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay) repository.

## Support

If you are having general issues with Omnipay, we suggest posting on
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project,
or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which
you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/hiqdev/omnipay-epayments/issues),
or better yet, fork the library and submit a pull request.

## License

This project is released under the terms of the MIT [license](LICENSE).
Read more [here](http://choosealicense.com/licenses/mit).

Copyright © 2019, HiQDev (http://hiqdev.com/)
33 changes: 33 additions & 0 deletions chkipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "hiqdev/omnipay-epayments",
"authors": {
"hiqsol": {
"name": "Andrii Vasyliev",
"role": "Project lead",
"email": "sol@hiqdev.com",
"github": "https://github.com/hiqsol",
"homepage": "http://hipanel.com/"
},
"SilverFire": {
"name": "Dmitry Naumenko",
"role": "Lead backend developer",
"email": "d.naumenko.a@gmail.com",
"github": "https://github.com/SilverFire",
"homepage": "http://silverfire.me/"
},
"tafid": {
"name": "Andrey Klochok",
"role": "Lead frontend developer",
"email": "andreyklochok@gmail.com",
"github": "https://github.com/tafid",
"homepage": "http://hiqdev.com/"
},
"BladeRoot": {
"name": "Yuriy Myronchuk",
"role": "QA Lead",
"email": "bladeroot@gmail.com",
"github": "https://github.com/BladeRoot",
"homepage": "http://hiqdev.com/"
}
}
}
69 changes: 69 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "hiqdev/omnipay-yandex-kassa",
"type": "library",
"description": "Yandex.Kassa driver for Omnipay payment processing library",
"keywords": [
"php",
"omnipay",
"yandex-kassa",
"merchant",
"payment"
],
"homepage": "https://github.com/hiqdev/omnipay-yandex-kassa",
"license": "MIT",
"support": {
"email": "support@hiqdev.com",
"source": "https://github.com/hiqdev/omnipay-yandex-kassa",
"issues": "https://github.com/hiqdev/omnipay-yandex-kassa/issues",
"wiki": "https://github.com/hiqdev/omnipay-yandex-kassa/wiki",
"forum": "http://forum.hiqdev.com/"
},
"authors": [
{
"name": "Andrii Vasyliev",
"role": "Project lead",
"email": "sol@hiqdev.com",
"homepage": "http://hipanel.com/"
},
{
"name": "Dmitry Naumenko",
"role": "Lead backend developer",
"email": "d.naumenko.a@gmail.com",
"homepage": "http://silverfire.me/"
},
{
"name": "Andrey Klochok",
"role": "Lead frontend developer",
"email": "andreyklochok@gmail.com",
"homepage": "http://hiqdev.com/"
},
{
"name": "Yuriy Myronchuk",
"role": "QA Lead",
"email": "bladeroot@gmail.com",
"homepage": "http://hiqdev.com/"
}
],
"require": {
"omnipay/common": "~2.3",
"yandex-money/yandex-checkout-sdk-php": "^1.2.1"
},
"require-dev": {
"omnipay/tests": "~2.0",
"hiqdev/hidev": "dev-master",
"hiqdev/hidev-php": "dev-master",
"hiqdev/hidev-hiqdev": "dev-master"
},
"autoload": {
"psr-4": {
"Omnipay\\YandexKassa\\": "src",
"Omnipay\\YandexKassa\\Tests\\": "tests/unit"
}
},
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
}
5 changes: 5 additions & 0 deletions docs/readme/BasicUsage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The following gateway is provided by this package:

* [ePayments](http://epayments.com/)

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay) repository.
10 changes: 10 additions & 0 deletions docs/readme/Support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
If you are having general issues with Omnipay, we suggest posting on
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project,
or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which
you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/hiqdev/omnipay-epayments/issues),
or better yet, fork the library and submit a pull request.
12 changes: 12 additions & 0 deletions hidev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package:
type: library
name: omnipay-yandex-kassa
title: Yandex.Kassa driver for Omnipay payment processing library
headline: "Omnipay: ePayments"
license: MIT
keywords: php, omnipay, yandex-kassa, merchant, payment
description: |
[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment
processing library for PHP 5.3+.
This package implements [ePayments](https://epayments.com/) support for Omnipay.
13 changes: 13 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" bootstrap="tests/_bootstrap.php">
<testsuites>
<testsuite name="Unit Test Suite">
<directory>./tests/unit/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
</phpunit>
Loading

0 comments on commit 32b9724

Please sign in to comment.