Improvements
- Add new response property AppUrl for createPaymentRequest.
- Add new resource CreditCardWalletInitiateAppPayment to initiate credit card wallet payment in APP for MobilePay & Vipps.
Bugfix
- Fix __setattr__` and __getattr__` methods in the Resource class, causing recursion issues when trying to set or access attributes like self.terminals.`
Improvements
- Add support for API/getTerminals
Improvements
- Enforce the right HTTP methods on all API endpoints.
Features
- Add redirect response as success in reservation
Features
- Add support for new 'Agreements Engine' parameters
- Add support for Apple Pay
Features
- Added support for Python version 3.9.x
Python support
- Python versions below 3.6 are no longer supported.
Improvements
- Absolute path for the module needs be appended to the sys.path; A check point has been added.
- Capture test case has been added as example.
Features
- Supports API changes from 20210324
- Added integration tests for merchant APIs.
- Added support for Python version 3.8.x
Bugfix
- Fixed PEP 8 code styling issues.
Python support
- As of version 1.4.0, Python versions below 3.5 are no longer supported.
Features
- Added
altapay.Transaction.chargebacks()
which returns the chargeback events as custom objects.
Features
- Added
altapay.Transaction.refund()
with functionality for refunding a transaction, both full and partial.
Bugfix
- Fixed a bug where parsing the values "nan", "inf" or "-inf" would lead to a float value, when handling XML values. While this could potentially be correct, it's safer to assume that these values are in fact string values
Features
- Added
altapay.FundingList
andaltapay.Funding
. These two objects will interact with the funding list features of AltaPay, and will allow you to both list all of your funding files, as well as download individual files. Currently no guide section is written on the subject, but full API documentation is available - Added
altapay.CustomReport
which mimics the custom reporting module of AltaPay. Using a custom report ID and additional kwargs based on the report, you can either view or download your custom reports
- Previously, all calls would use an HTTP GET, since the AltaPay documentation in some cases suggests that this is the case. This works, however, it breaks when payments start to contain many order lines. Because of this, all calls have been changed to HTTP POST, which is the recommended way of communicating with the AltaPay API.
API Change
- Backwards incompatible
altapay.Transaction.capture()
will now return analtapay.Callback
object instead of aaltapay.Transaction
object
First Production Release
Features
- Addded
altapay.Transaction.release()
Improvements
- Backwards incompatible Moved
altapay.Transaction.create_invoice_reservation()
toaltapay.Callback.create_invoice_reservation()
. The method will now return aaltapay.Callback
object in order to read the result key (#41)
Features
- Added
altapay.Transaction.create_invoice_reservation()
Improvements
- Backwards incompatible Changed the name of
altapay.Transaction.reserve()
toaltapay.Transaction.reserve_subscription_charge()
Features
- Added
altapay.Transaction.reserve()
which will reserve an amount on a subscription
Improvements
- Backwards incompatible Changed the return type of
altapay.Transaction.charge_subscription()
. It will not return aaltapay.Callback
object instead of a list of transactions - Backwards incompatible Changed the argument of
altapay.Callback.transactions()
to be keyword only. Will now accept any number of filters, and these will be matched using AND logic
Features
- Added
altapay.Transaction.charge_subscription()
which will charge a subscription on a transaction, if this transaction is setup as a subscription
Bugfixes
- Fixed a bug where looking up a non-existent transaction ID would result in a
KeyError
(#32)
Bugfixes
- Added missing apostrophe's in the documentation for the callback guide (#24)
- Fixed a bug where filtering transactions on a
altapay.Callback
object might result in aKeyError
(#25)
Improvements
- Made it more explicit how attributes on response objects work (#26)
Features
- Added
altapay.Transaction
and the ability to find a transaction by its transaction ID in the AltaPay service - Added
altapay.Transaction.capture()
which captures a transaction that has already been loaded. Optionally, parameters can be passed which allows for partial captures (see the AltaPay documentation for full list of possible arguments) - Added a public facing API for converting an AltaPay XML response (as a string) to a Python dictionary (
altapay.utils.xml_to_dict
) - Added
altapay.Callback
which wraps a callback response from AltaPay, and automatically wraps the coupled transactions inaltapay.Transaction
objects
Bugfixes
- Fixed a bug where specifying a non-existing terminal while creating an
altapay.Payment
object would result inaltapay.Payment.success
returningTrue
- Fixed a bug where running in production mode was not possible. It is now possible by specifying a shop name when instantiating the API
- Complex payments are now possible. This means it is now possible to send detailed payment information in a Pythonic way using just lists and dictionaries, instead of the PHP style query params syntax
- Documentation now includes a small guide for available parts of the SDK, which will make is easier to get started easily without reading the raw API documentation
- Basic API connection class implemented in
altapay.api.API
- Basic Payment class implemented in
altapay.payment.Payment
which is currently mainly for creating a very basic payment request with the AltaPay service