NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4294 most downloaded on Packagist
GoPay's PHP SDK for Payments REST API
Latest stable
1.11.1
Last release 7 months ago
16 Apr 2026
Release timing varies
gaps range from 8 days to 12 months
Most releases are documented
notes for 37 of 47 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
47 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Added encoding of data, support for BGN
Added encoding of data, support for BGN
QrPaymentTest disabledphpunit/phpunit from 9.3.7 to 9.6.33Added new QR payment feature
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added new bank swifts - Revolut, bank365
Added new bank swifts - Revolut, bank365
Added new bank swift PTBNCZPP
- Added QR payment swift
Added User-Agent with version
Added User-Agent with version
- Added Config object
Config objectAdded BNPL Payment method
Added support for history of refunds, see https://doc.gopay.com/#history-of-refunds
fixes #60
- Fixed #52, #58, #59
Added support for DELETE requests
isProductionModesuperCash removed - has been deprecated for long
The main point of this release is the new methods for Card ID, namely getCardDetails and deletaCard.
Along with that some other changes were made:
isProductionMode removed - it's required to always use gatewayUrlvatRate enum removed - it's allowed to use any integer between 0 - 100 as a vat rate (to support other countries)Fixed building URLs for various gatewayUrl values
gatewayUrl values- Fixed typo in languages
Removed HRK currency, updated languages
HRK currency, updated languages- Added _5050 substate
_5050 substateBumped guzzlehttp/guzzle from 7.3.0 to 7.4.5
_5049 substateguzzlehttp/guzzle from 7.3.0 to 7.4.5- Removed ERA bank swift
ERA bank swift- Added UK language constant
UK language constantResponse::$json type changed to array
Response::$json type changed to arrayguzzlehttp/psr7 2.2.1)- Fixed missing $this
$thisAdded CLICK_TO_PAY payment instrument
CLICK_TO_PAY payment instrumentFixed typo in VUB swift constant
Examples no longer use deprecated isProductionMode
isProductionModejs-init example- Added _5048 substate
_5048 substateisProductionMode is now deprecated and will be removed
isProductionMode is now deprecated and will be removedgatewayUrl parameter is preferred way to set gateway urlSupercash payment method is no longer supported by the payment gateways, relevant code marked as deprecatedDropped support for Guzzle 5 depedency
isProductionMode may now take anything that can be resolved as a boolean via filter_var ("yes", "true", true ...)
isProductionMode may now take anything that can be resolved as a boolean via filter_var ("yes", "true", true ...)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
- Added api call partial capture
Updated dependencies, allow to use both Guzzle 5 & Guzzle 6
Updated dependencies, allow to use both Guzzle 5 & Guzzle 6
Nothing published for this version
- Fixed examples - Removed obscolete unit test
Nothing published for this version
Nothing published for this version
- Added support for EET - Updated examples
Fix GoPay\Definition\Payment\BankSwiftCode::KOMERCNI_BANKA
GoPay\Definition\Payment\BankSwiftCode::KOMERCNI_BANKAautoload-devSimplified token caching, based on python-sdk
TokenCache handles only set/get token, no isExpired method$client is passed as first argument instead of setClient methodgetAccessToken can return null if token does not exist<?php
use GoPay\Token\TokenCache;
use GoPay\Token\AccessToken;
class PrimitiveFileCache extends TokenCache
{
private $file;
public function setClient($client)
{
$this->file = __DIR__ . "/{$client}";
}
public function setAccessToken(AccessToken $t)
{
file_put_contents($this->file, serialize($t);
}
public function getAccessToken()
{
if (file_exists($this->file)) {
return unserialize(file_get_contents($this->file));
}
return $this->getExpiredToken();
}
}
<?php
use GoPay\Token\TokenCache;
use GoPay\Token\AccessToken;
class PrimitiveFileCache implements TokenCache
{
private $file;
private function setClient($client)
{
$this->file = __DIR__ . "/{$client}";
}
public function setAccessToken($client, AccessToken $t)
{
$this->setClient($client);
file_put_contents($this->file, serialize($t);
}
public function getAccessToken($client)
{
$this->setClient($client);
if (file_exists($this->file)) {
return unserialize(file_get_contents($this->file));
}
return null;
}
}
- Add phpunit's bootstrap
Call every API method without validation
One column per quarter.