Giter Site home page Giter Site logo

gopay's Introduction

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Usage

This version use communication through SOAP. We recommend use contributte/gopay-inline which uses JSON REST API.

To install the latest version of markette/gopay use Composer.

composer require markette/gopay

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^3.4.0 master 3.0+ >=7.1
stable ^3.3.0 master 3.0+ >=7.1
stable ^3.2.0 master 2.4 >=5.6
stable ^3.0.0 master 2.3 >=5.5
stable ^2.3.0 master 2.3 >=5.4
stable ^2.2.0 master 2.2 >=5.3.2

Development

See how to contribute to this package.

This package is currently maintaining by these authors.


Consider to support contributte development team. Also thank you for using this package.

gopay's People

Contributors

artemevsin avatar attanon avatar camohub avatar f3l1x avatar haltuf avatar honzy avatar hrach avatar hranicka avatar kraag22 avatar martiman avatar martinsifra avatar matak avatar mishak87 avatar miso-belica avatar ondrakub avatar ondrs avatar pavelkouril avatar pavelsmolka avatar petrparolek avatar radimvaculik avatar vitkutny avatar vojtech-dobes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gopay's Issues

Travis CI: report to coveralls failed

Copy of that - https://travis-ci.org/Markette/Gopay/jobs/59558874

Load coverage clover log:

  • /home/travis/build/Markette/Gopay/coverage.xml
    Found 17 source files:
  • 0.00% Api/CountryCode.php
  • 20.00% Api/GopayConfig.php
  • 17.55% Api/GopayHelper.php
  • 0.00% Api/GopayHttp.php
  • 0.24% Api/GopaySoap.php
  • 0.00% Api/PaymentMethodElement.php
  • 0.00% Api/PaymentMethods.php
  • 94.12% Extension.php
  • 100.00% GopayException.php
  • 100.00% GopayFatalException.php
  • 100.00% GopayHolder.php
  • 100.00% IPaymentButton.php
  • 100.00% ImagePaymentButton.php
  • 100.00% Payment.php
  • 100.00% PaymentButton.php
  • 100.00% ReturnedPayment.php
  • 81.15% Service.php
    Coverage: 31.54% (299/948)
    Collect git info
    Read environment variables
    Dump uploading json file: /home/travis/build/Markette/Gopay/coverage.json
    PHP Catchable fatal error: Method Contrib\Bundle\CoverallsV1Bundle\Entity\JsonFile::__toString() must return a string value in /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php on line 107
    PHP Stack trace:
    PHP 1. {main}() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/composer/bin/coveralls:0
    PHP 2. Symfony\Component\Console\Application->run() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/composer/bin/coveralls:34
    PHP 3. Symfony\Component\Console\Application->doRun() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:126
    PHP 4. Symfony\Component\Console\Application->doRunCommand() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:195
    PHP 5. Symfony\Component\Console\Command\Command->run() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:874
    PHP 6. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->execute() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
    PHP 7. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->runApi() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:103
    PHP 8. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->dumpJsonFile() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:152
    PHP 9. Contrib\Bundle\CoverallsV1Bundle\Api\Jobs->dumpJsonFile() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:263
    PHP 10. file_put_contents() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php:107
    Catchable fatal error: Method Contrib\Bundle\CoverallsV1Bundle\Entity\JsonFile::__toString() must return a string value in /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php on line 107
    Call Stack:
    0.0002 241440 1. {main}() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/composer/bin/coveralls:0
    0.0187 2049568 2. Symfony\Component\Console\Application->run() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/composer/bin/coveralls:34
    0.0232 2451032 3. Symfony\Component\Console\Application->doRun() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:126
    0.0234 2451928 4. Symfony\Component\Console\Application->doRunCommand() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:195
    0.0234 2452352 5. Symfony\Component\Console\Command\Command->run() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Application.php:874
    0.0238 2455600 6. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->execute() /home/travis/build/Markette/Gopay/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
    0.0378 3695016 7. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->runApi() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:103
    0.0935 5127664 8. Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand->dumpJsonFile() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:152
    0.0936 5127768 9. Contrib\Bundle\CoverallsV1Bundle\Api\Jobs->dumpJsonFile() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php:263
    0.0936 5127816 10. file_put_contents() /home/travis/build/Markette/Gopay/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php:107
    Done. Your build exited with 0.

Bump 2.2

  • GoPay API completly standalone #34
  • New GoPay inline method #45
  • Possibility to change channel on gopay side #47

Update readme

  • mention newest package
  • mention how to use latest version

Implement new API functions

I believe implementing other features from the official API should be a long-term milestone:

  • preauthorized payments, capture preauthorization, void preauthorization
  • recurrent payments, perform reccurence, void reccurence
  • refunds
  • partial refunds

How to set SK lang

Hi, I would like to have SK lang in GoPay form, and as I see GoPay support SK language https://doc.gopay.com/en/?php#lang
But in the Markete are allowed only CZ/EN.
There is a method:

public function setLang($lang)
    {
        if (!in_array($lang, $this->allowedLang)) {
            throw new InvalidArgumentException('Not supported language "' . $lang . '".');
        }
        $this->lang = $lang;

        return $this;
    }

which does not allow any other language. If I change the code ($allowedLang property), to support SK lang it works. In my opinion condition in setLang method is useless. Everybody can ensure the valid lang code and in other way it throws an exception (as it works also for now). Is it really necessary to check allowed langs which are hardly coded in AbstractService->allowedLang?
Thanks.

EDIT: Not valid lang code falls to default EN, what is expectable and desirable, so that condition looks really useless.

Method code METHOD_MPLATBA is wrong.

File Gopay/Service.php at line 46

There must be cz_mp for METHOD_MPLATBA, because cz_mb is code for METHOD_MBANK and this method is already defined.

This error causes malfunction of METHOD_MPLATBA and this channel is impossible to add to allowed methods.

Nastavení notification_url

Zdravím, nikde jsem nezjistil, jak platbě nastavím parametr notification_url, na který chodí ping o změně stavu platby?

Bitcoin platby

Ahoj, rád bych se zeptal, jak udělat platbu přes bitcoin :-). Chybí konstanta GoPay::METHOD_BITCOIN. Tak jestli bude stačit tam přidat nějaký string? V dokumentaci je uveden string BITCOIN, ale nejsem si jist, jestli ta dokumentace odpovídá balíčku, ostatní typy plateb tomu také neodpovídají.

Ještě bude asi potřeba přidat do configu podporu pro channels bitcoinu

gopay:
    payments:
        channels:
            bitcoin: yes

Jde mi o to, co dát ve volání PaymentService::pay($payment, $channel, $callback) do $channel.

[stable] v3.0.0

Plan:

  • Release stable v3.0.0 with a full api for regular payments, recurrent payments, pre-authorized payments. And also with backport for new Inline payments.

Platební karty

Pokouším se o provedení platby pomocí platební karty, ale ani pokud předvyberu metodu (Service::METHOD_CARD_GPB) ani pokud nevyberu nic, GoPay mi nenabídne platbu kartou. V administraci ji mám samozřejmě povolenou. Používám "dev-master".

Gopay extension requires dev version of Nette

Is it necessary? My project currently uses Nette ~2.0. Is it necessary to have Nette 2.1 to get it run?

However, when I tried to update both Nette and Gopay to the latest version, Nette complained about incorrect namespace of Extension, recently renamed to DI.

Gopay Inline platby

Je v plánu zařadit GoPay Inline platby? Je to docela dost zajímavá featurka. Dokumentace už je full.

Move to PHP 7.1

I think it's good time to move to PHP 7.1 and drop all old versions.

From v3.2.0 it will requires PHP 7.1 and v3.1.x will support PHP >=5.6.

What do you think @haltuf @hranicka and others?

Dependencies - move nette to optional dependencies

I'm also thinking about make this package thin as possible.

nette/application

Only usage is to create RedirectResponse, I vote for remove it a return only $url.

https://github.com/Markette/Gopay/blob/9a712df2cba8387a4b8c489bae44f2f8154037a5/src/Gopay/Service/PreAuthorizedPaymentService.php#L52

nette/forms

It is for bind some buttons/inputs to nette forms, but I don't use it and maybe other guys neither. So I vote for make it optional via require-dev.

nette/di

It's pretty standard and I don't see any reason to not include it.


cc @haltuf @hranicka @Attanon

Nastaveni platebnich kanalu v config.neon provadi nepotrebne volani GoPayWS

Tenhle kousek kódu.

gopay:
    gopayId        : xxxx
    gopaySecretKey : xxxx
    testMode       : true
    channels:
        card_ceskas: Yes

"Problém" je ve volání $gopay->allowChannel(...) (Gopay/Service.php#L262) které zpusobí volání GoPay WS a to v mém případě zvedne latenci odpovědí celého webu (bez ohledu na použití plateb) o ±400ms.

Přesunul jsem nastavení kanálů do modelu, těsně před volání $gopay->pay(...) ale rád bych nechal konfiguraci tak kde patří.

Nějaké nápady? Nemám zkušenosti s psaním extenzí pro Nette. Ale pokusím se zbastlit nějakou formu lazy loadingu. Nebo možná cache?

Split Gopay\Api to other repo

I suggest to split Gopay\Api to other repo - Markette/GopayApi.

cons:

  • composer package - for those who would like implement their own library, there is no gopay-api package today
  • 100% tests for Markette/Gopay - at this moment, only API is uncovered
  • developing - you can update GopayApi without changes in Gopay, easy maintain more branches and APIs

What do you think? @hrach @vojtech-dobes @hranicka @haltuf

https://testgw.gopay.cz ssl certificate expired

Hi,

gopay few months ago switched testing server to new url: https://gw.sandbox.gopay.com/

https://testgw.gopay.cz/ is no longer valid.

More info below:

Dobrý den,

URL adresa testovacího prostředí ve formátu "https://testgw.gopay.cz/..." přestala být funkční

počínaje minulým týdnem, kdy na evedené doméně vypršela životnost SSL certifikátu.

Veřejně již prezentujeme dokumentaci pouze k aktuální verzi platební brány pomocí REST API

a to na webu https://doc.gopay.com/cs/. Tato dokumentace je dostupná od roku 2015.

Děkujeme.

Ambiguous class App\Model\ShopModel resolution

Hi, I've got Nette\InvalidStateException after install over composer. There is full exception message.

Ambiguous class App\Model\ShopModel resolution; defined in 
/vendor/markette/gopay/docs/v3.x/examples/Model.php and in 
/vendor/markette/gopay/docs/v2.x/examples/Model.php.

There have to be different namespace.

From composer info

markette/gopay                 v3.1.1  Integrace platebního systému Gopay pro Nette Framework.
markette/gopay-api             v2.5.3  Public GopayAPI SDK for PHP.

Zrušenie recurrent platby

Zaimplementoval som opakujúce sa platby pomocou markette/[email protected] na Nette ^2.3.0, ale neviem ako zrušiť existujúci RecurrentPayment na strane GoPay.

RecurrentPaymentService::restorePayment() vráti objekt ReturnedPayment, ktory má rôzne metódy (isPaid, isFraud, isWaiting...) a buď priamo v tomto objekte, alebo v samotnom RecurrentPaymentService by som čakal metódu napr. cancelRecurrentPayment()

Gopay Docs > Zrušení platby

IPayment button not implemented

matak@c6b5359

Still not working submitted button
public function submittedForm(Markette\Gopay\PaymentButton $button)
{
$channel = $button->getChannel();
}

does not take ImagePayment button anf Matak commit is still not there,

PHP 5.4

  • Short array syntax
  • Traits (maybe)

Structure: changes

  • Remove src/Gopay folder [it's sure]
  • Move Extensions under Gopay/DI namespace [it's sure]

  • Move PaymentButton, ImagePaymentButton, IPaymentButton under Gopay/Form namespace [???]
  • Move ReturnedPayment, Payment under Gopay/Entity namespace [???]
  • Move _Exception under _Gopay/Exception* namespace [???]

Let's discuss about it.

Exception namespace

Not sure if my problem or real omission - Exception has wrong namespace in GoHelper class:

Fatal error: Class 'Markette\Gopay\Api\Exception' not found in ***/libs/Gopay/Api/GopayHelper.php:510

Solved by adding:

use \Exception ;

on the beginning of the file.

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.