Skip to content

Commit cfff781

Browse files
committed
add refund_payment to client
1 parent e98aa8f commit cfff781

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

askell/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def import_payment_method(self, user, payment_method_data):
121121
response = requests.post(self._build_url(path), headers=self._auth, json=data)
122122

123123
return response.json()
124-
124+
125+
def refund_payment(self, uuid):
126+
path = '/payments/{}/refund/'.format(uuid)
127+
response = requests.post(self._build_url(path), headers=self._auth, json={})
128+
return response.json()
125129

126130
client = AskellClient(ASKELL_SECRET_KEY, endpoint=ASKELL_ENDPOINT)

0 commit comments

Comments
 (0)