@@ -7,25 +7,25 @@ from paystackapi.plan import Plan
77response = Plan.create(name = ' value' , description = ' value' ,
88 amount = amount, interval = ' value' ,
99 send_invoices = ' value' ,
10- send_sms = ' value ' ,
11- hosted_page = ' value ' ,
12- hosted_page_url = ' value ' ,
13- hosted_page_summary = ' value ' ,
14- currency = ' value ' )
10+ send_sms = True ,
11+ hosted_page = False ,
12+ hosted_page_url = None ,
13+ hosted_page_summary = None ,
14+ currency = ' NGN ' )
1515```
1616
1717* Arguments*
1818
19- - ` name ` : plan's name.
20- - ` description ` : description of the plan.
21- - ` amount ` : amount for the plan in kobo
22- - ` interval ` : plan's interval(daily...etc)
23- - ` send_invoices ` : boolean
24- - ` send_sms ` : (optional)
25- - ` hosted_page ` : (optional)
19+ - ` name ` : plan name.
20+ - ` description ` : plan description .
21+ - ` amount ` : plan amount in kobo.
22+ - ` interval ` : plan interval (daily...etc)
23+ - ` send_invoices ` : Boolean
24+ - ` send_sms ` : Boolean (optional)
25+ - ` hosted_page ` : Boolean (optional)
2626- ` hosted_page_url ` : url of hosted page (optional)
2727- ` hosted_page_summary ` : summary of the hosted page
28- - ` currency ` : plans currency (NGN)
28+ - ` currency ` : plan currency (NGN)
2929
3030* Returns*
3131
@@ -67,24 +67,23 @@ JSON data from paystack API.
6767from paystackapi.plan import Plan
6868response = Plan.update(plan_id = 23 , name = None , description = None ,
6969 amount = None , interval = None ,
70- send_invoices = None , send_sms = None ,
70+ send_invoices = None , send_sms = True ,
7171 hosted_page = None , hosted_page_url = None ,
72- hosted_page_summary = None , currency = None )
72+ hosted_page_summary = None , currency = NGN )
7373```
7474
7575* Arguments*
7676
77- - ` plan_id ` : plan identity number.
78- - ` name ` : name of plan
79- - ` description ` : plan description(optional)
80- - ` amount ` : plan amount in Kobo
81- - ` interval ` : plan interval9(monthly, yearly, quarterly...etc)
82- - ` send_invoice ` : (optional)
83- - ` send_sms ` : (optional)
84- - ` hosted_page ` : (optional)
85- - ` hosted_page_url ` : (optional)
86- - ` hosted_page_summary ` : (optional)
87- - ` currency ` : Naira in kobo(NGN)
77+ - ` name ` : plan name.
78+ - ` description ` : plan description.
79+ - ` amount ` : plan amount in kobo.
80+ - ` interval ` : plan interval (daily...etc)
81+ - ` send_invoices ` : Boolean
82+ - ` send_sms ` : Boolean (optional)
83+ - ` hosted_page ` : Boolean (optional)
84+ - ` hosted_page_url ` : url of hosted page (optional)
85+ - ` hosted_page_summary ` : summary of the hosted page
86+ - ` currency ` : plan currency (NGN)
8887
8988* Returns*
9089
0 commit comments