All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Pydantic v2 to project dependencies.
- Utility methods for fees calculation
calculate_fee
,to_base_unit
,to_subunit
. ClientNetworkError
. An exception raised for all network related errors.
auth_key
parameter tosecret_key
.- secret key environmental variable name from
PAYSTACK_AUTHORIZATION_KEY
toPAYSTACK_SECRET_KEY
MissingAuthKeyException
toMissingSecretKeyException
- Rename wrappers to clients. All usages of wrappers are now deprecated in favour of clients.
Paystack
wrapper class in the past is nowPaystackClient
likewise all other api wrappers are now sub clients e.g.ApplePay
is nowApplePayClient
- Unused
amount
parameter inTransactionClient.export
- Support for
python<=3.10
- Package defined
HTTPMethod
enum. Now usingHTTPMethod
from the standard lib. validate_amount
andvalidate_interval
helper methodsInvalidMethodException
,InvalidDataException
2.1.1 - (9th December 2024)
- Rwanda to paystack supported countries
- RWF to paystack supported currencies
- Make
TransactionSplit.get_splits
parameters optional
- Charge.setAddress -> Charge.submitAddress
2.1.0 - (8th October 2024)
- Param documentation for ApplePay.unregister_domain
- Param documentation for AsyncApplePay.unregister_domain
meta
,type
andcode
fields toResponse
- Bumped httpx to 0.27.2
- Transaction.get_transactions(customer: Optional[int]) -> Transaction.get_transactions(customer: Optional[str])
- AsyncTransaction.get_transactions(customer: Optional[int]) -> AsyncTransaction.get_transactions(customer: Optional[str])
- Transaction.export(customer: Optional[int]) -> Transaction.export(customer: Optional[str])
- AsyncTransaction.export(customer: Optional[int]) -> AsyncTransaction.export(customer: Optional[str])
- Transaction.export(settlement: Optional[int]) -> Transaction.export(settlement: Optional[str])
- AsyncTransaction.export(settlement: Optional[int]) -> AsyncTransaction.export(settlement: Optional[str])
- Transaction.export(payment_page: Optional[int]) -> Transaction.export(payment_page: Optional[str])
- AsyncTransaction.export(payment_page: Optional[int]) -> AsyncTransaction.export(payment_page: Optional[str])
- PaymentRequest.update
line_item
andtax
parameter to useTax
andLineItem
inplace oflist
- AsyncPaymentRequest.update
line_item
andtax
parameter to useTax
andLineItem
inplace oflist
- PaymentPage.metadata type
- AsyncPaymentPage.metadata type
- Plan.update documentation
- Use of literal "POST" in TransactionSplit.add_or_update
- Use of literal "POST" in AsyncTransactionSplit.add_or_update
- Redundant payload from Subscription.send_update_link
- Redundant payload from AsyncSubscription.send_update_link
2.0.3 - (24th March 2024)
- Changelog to project.
ApplePay.unregister_domain
andAsyncApplePay.unregister_domain
raisesNotImplementedError
- Client raises
JSONDecodeError
when response is not json serializable. It now returns with aResponse
with thedata
parameter containing acontent
field with the bytes content returned. - Mismatched source code and documentation links in docs
2.0.2 - (1st December 2023)
- Parameter options to ApplePay wrapper methods
back_transfer
parameter toCharge.charge
andAsyncCharge.charge
pay_with_bank_transfer
,pay_with_bank
parameters toMiscellaneous.get_banks
andAsyncMiscellaneous.get_banks
split_code
parameter toPaymentPage.create
andAsyncPaymentPage.create
QUARTERLY
andBIANNUALLY
toInterval
enum
birthday
parameter fromCharge.charge
andAsyncChrge.charge
Miscellaneous.get_providers
andAsyncMiscellaneous.get_providers
- Broken docstrings API reference documentation links
2.0.1 - (27th July 2023)
- Refactor project internals
2.0.0 - (18th May 2023)
- Asynchronous wrappers and
AsyncPaystack
class which provided bindings to other async wrappers.
- Use
httpx
in place ofrequests
1.1.3 - (10th March 2023)
Paystack
class which had bindings to other wrappers
1.0.3 - (26th December 2022)
- Cleanup documentation
1.0.2 - (25th December 2022)
- Implement additional wrappers to cover all endpoints provided by paystack
1.0.0 - (25th July 2022)
- Fork project from pypaystack
- Breaks projects were it is added as a dependency