Gopay

Latest version: v2.2.3

Safety actively analyzes 688215 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.1.0

- Added support for configurable timeout for requests, see 22
- Added support for history of refunds, see https://doc.gopay.com/#history-of-refunds

2.0.1

- a bug where URL of the embed JS for inline gateway was not generated properly, (see 16) was fixed

2.0.0

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 use `gateway_url` (see [docs](https://doc.gopay.com) 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 but `payments.get_status(id_payment=1234)` will not (the parameter name is now `payment_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. Use `Response.success` (a property) instead
- Default services were moved and renamed. The default logger and cache can be found in `gopay.services` as `DefaultCache` and `default_logger`
- Older methods that are not available with gopay were removed (like SuperCash)
- New methods were added (for Card ID, see [docs](https://doc.gopay.com#payment-cards)
- 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.

1.2.0

Added SuperCASH batch features

1.0.0

- Call every API method without validation
- Cache access token
- Log HTTP communication

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.