Synchronous Paystack Wrapper
The PayStackBase class serves as a comprehensive wrapper around various client APIs, providing a unified interface to interact with the PayStack API synchronously. It encapsulates individual client APIs for different aspects of PayStack services, such as payments, customers, disputes, and more, simplifying the integration process and promoting code organization.
USAGE
>>> from paystackease import PayStackBase
>>> def paystack_client():
>>> paystack = PayStackBase()
>>> response = paystack.apple_pay.register_domain(domain_name="your-domain-name-here")
>>> print(f"PayStackResponse: {response}")
>>> paystack_client()
Note
You can also pass the parameter secret_key to the PayStackBase class. This will override the environment variable.
It is highly recommended to use the set the environment variable as PAYSTACK_SECRET_KEY and ensure it is safe.