Releases: gopaycommunity/gopay-python-api
Releases · gopaycommunity/gopay-python-api
Release 2.2.0
- Added support for configurable timeout for requests, see #22
- Added support for history of refunds, see https://doc.gopay.com/#history-of-refunds
Fixed embed URL JS
- a bug where URL of the embed JS for inline gateway was not generated properly, (see #16) was fixed
2.0.0 Major SDK refactor
In order to add more API methods and for better maintainability between multiple people, the SDK has a major refactor. Most of the basic usage should stay the same but there are some backward incompatible changes:
- The
isProductionMode
config option was removed, now always usegateway_url
(see docs for the available endpoints) - The
timeout
config options was removed. It didn't really do much. - Many parameter names were changed. If you use positional parameters, you should have no problems, but if you used parameter names, this could cause breakage. For example
payments.get_status(1234)
will still work butpayments.get_status(id_payment=1234)
will not (the parameter name is nowpayment_id
- Many of the internals were renamed and reworked. If you didn't stick to the documentation, this might cause problems
- Snake case is now prefered in the config, even though camelCase still works for now. However please use
client_id
etc. when initating the payment gateway Response.has_succeed()
is being deprecated. UseResponse.success
(a property) instead- Default services were moved and renamed. The default logger and cache can be found in
gopay.services
asDefaultCache
anddefault_logger
- Older methods that are not available with gopay were removed (like SuperCash)
- New methods were added (for Card ID, see docs
- The config object is now validated with Pydantic, so if you were passing any other values than the ones documented, that will now cause an error
That is basically all. For basic usage almost everything should work as it did before.
v1.2.0
Added SuperCASH batch features
v1.0.0
- Call every API method without validation
- Cache access token
- Log HTTP communication