forked from andela-sjames/paystack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaystack.py
More file actions
49 lines (45 loc) · 1.79 KB
/
paystack.py
File metadata and controls
49 lines (45 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""Entry point defined here."""
from paystackapi.bulkcharge import BulkCharge
from paystackapi.charge import Charge
from paystackapi.cpanel import ControlPanel
from paystackapi.customer import Customer
from paystackapi.invoice import Invoice
from paystackapi.misc import Misc
from paystackapi.page import Page
from paystackapi.plan import Plan
from paystackapi.product import Product
from paystackapi.refund import Refund
from paystackapi.settlement import Settlement
from paystackapi.subaccount import SubAccount
from paystackapi.subscription import Subscription
from paystackapi.tcontrol import TransferControl
from paystackapi.transaction import Transaction
from paystackapi.transfer import Transfer
from paystackapi.trecipient import TransferRecipient
from paystackapi.verification import Verification
from paystackapi.transaction_split import TransactionSplit
from paystackapi.base import PayStackBase
class Paystack(PayStackBase):
"""Base class defined for PayStack Instance Method."""
def __init__(self, secret_key=None):
"""Instantiate Basic Classes to call here."""
PayStackBase.__init__(self, secret_key=secret_key)
self.bulkcharge = BulkCharge
self.charge = Charge
self.cpanel = ControlPanel
self.customer = Customer
self.invoice = Invoice
self.misc = Misc
self.page = Page
self.plan = Plan
self.product = Product
self.refund = Refund
self.settlement = Settlement
self.subaccount = SubAccount
self.subscription = Subscription
self.transaction = Transaction
self.transactionSplit = TransactionSplit
self.transferControl = TransferControl
self.transfer = Transfer
self.transferRecipient = TransferRecipient
self.verification = Verification