Miscellaneous API
Utility endpoints: bank lists, countries, and more.
- class djpaystack.api.miscellaneous.MiscellaneousAPI(client)[source]
Bases:
BaseAPIMiscellaneous API
- list_banks(country: str = 'nigeria', use_cursor: bool = False, per_page: int = 50, page: int | None = None, pay_with_bank_transfer: bool | None = None, pay_with_bank: bool | None = None, enabled_for_verification: bool | None = None, type: str | None = None, currency: str | None = None) Dict[str, Any][source]
List banks
Integration API
Bulk Charges API
- class djpaystack.api.bulk_charges.BulkChargeAPI(client)[source]
Bases:
BaseAPIBulk Charges API
- list(per_page: int = 50, page: int | None = None, from_date: str | None = None, to_date: str | None = None) Dict[str, Any][source]
List bulk charges
Products API
- class djpaystack.api.products.ProductAPI(client)[source]
Bases:
BaseAPIProducts API
- create(name: str, description: str, price: int, currency: str, unlimited: bool | None = None, quantity: int | None = None) Dict[str, Any][source]
Create product
Settlements API
Quick Reference
from djpaystack import PaystackClient
client = PaystackClient()
# Miscellaneous
client.miscellaneous.list_banks(country='nigeria', currency='NGN')
client.miscellaneous.list_countries()
client.miscellaneous.list_states(country='NG')
# Integration
client.integration.fetch_payment_session_timeout()
client.integration.update_payment_session_timeout(timeout=30)
# Bulk charges
client.bulk_charges.initiate(charges=[...])
client.bulk_charges.list()
client.bulk_charges.fetch(id_or_code=...)
client.bulk_charges.fetch_charges_in_batch(id_or_code=...)
client.bulk_charges.pause(batch_code=...)
client.bulk_charges.resume(batch_code=...)
# Products
client.products.create(name=..., description=..., price=..., currency=...)
client.products.list()
client.products.fetch(id=...)
client.products.update(id=..., name=...)
# Settlements
client.settlements.list()
client.settlements.fetch_transactions(id=...)