Skip to content

Commit e725c1c

Browse files
committed
paypal provider: add docstrings to GET and POST methods
1 parent 58146c1 commit e725c1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

payments/paypal/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ def http_request(self, payment, *args, http_method=None, **kwargs):
148148
return data
149149

150150
def post(self, payment, *args, **kwargs):
151+
"""Perform a POST request to the PayPal API."""
151152
return self.http_request(payment, *args, http_method=requests.post, **kwargs)
152153

153154
def get(self, payment, *args, **kwargs):
155+
"""Perform a GET request to the PayPal API."""
154156
return self.http_request(payment, *args, http_method=requests.get, **kwargs)
155157

156158
def get_last_response(self, payment, is_auth=False):

0 commit comments

Comments
 (0)