contributte / gopay Goto Github PK
View Code? Open in Web Editor NEW:moneybag: Integrace Gopay pro Nette Framework
License: MIT License
:moneybag: Integrace Gopay pro Nette Framework
License: MIT License
I suggest to split Gopay\Api to other repo - Markette/GopayApi.
cons:
What do you think? @hrach @vojtech-dobes @hranicka @haltuf
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?
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.
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.
Pri PHP 8.1 pise chybu:
trim(): Passing null to parameter #1 ($string) of type string is deprecated:
Is there a way to get response from verify with additional_params of movement id?
Imagine that you refund twice per one order, everytime you get notification, but you are not abble to check if it is the same notification or not
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()
I believe implementing other features from the official API should be a long-term milestone:
last stable version v1.1.0 does not work anymore. (API 1.9 was probably removed)
Due to commit 27500ce, allowChannel() now throws exception
InvalidArgumentException: Channel with name (...) isn't defined.
Plan:
BasePayment.setVariable() by nemusela pretypovavat na int
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".
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.
Implement EET support (variant B) according to https://help.gopay.com/cs/tema/propojeni-do-eet/jak-bude-fungovat-napojeni-gopay-do-eet#zakladni
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,
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.
line 480
$name není k dispozici, protože se nepředává z metody bindPaymentButtons()
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.
Some tracy panel for tracking request to gopay.
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
.
Copy of that - https://travis-ci.org/Markette/Gopay/jobs/59558874
Load coverage clover log:
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
.
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.
Zdravím, nikde jsem nezjistil, jak platbě nastavím parametr notification_url, na který chodí ping o změně stavu platby?
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.
Je v plánu zařadit GoPay Inline platby? Je to docela dost zajímavá featurka. Dokumentace už je full.
Let's discuss about it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.