@@ -198,7 +198,7 @@ def create_plan(self, product_id: str, name: str, description: str, price: str,
198198 url = f"{ self .base_url } /v1/billing/plans"
199199 return self ._make_request (url = url , method = "POST" , json = data , headers = self .headers )
200200
201- def create_order (self , amount : str , currency : str = "EUR" , return_url : str , cancel_url : str ) -> Dict [str , Any ]:
201+ def create_order (self , amount : str , currency : str = "EUR" , return_url : str = '' , cancel_url : str = '' ) -> Dict [str , Any ]:
202202 """
203203 Create a new order for a one-time payment.
204204
@@ -291,7 +291,7 @@ def update_subscription_price(self, subscription_id: str, new_price: str, curren
291291 }
292292 return self ._make_request (url = url , method = "POST" , json = data , headers = self .headers )
293293
294- def create_subscription (self , plan_id : str , subscriber_email : str , return_url : str , cancel_url : str , custom_id : str = '' ) -> Dict [str , Any ]:
294+ def create_subscription (self , plan_id : str , subscriber_email : str , return_url : str = '' , cancel_url : str = '' , custom_id : str = '' ) -> Dict [str , Any ]:
295295 """
296296 Create a new subscription.
297297
0 commit comments