Skip to content
Snippets Groups Projects
Commit cc3bb305 authored by Clinton Blackburn's avatar Clinton Blackburn
Browse files

Fixed call to refund creation endpoint

Data should be sent as a dict, not kwargs.
parent d406da87
No related merge requests found
......@@ -82,8 +82,7 @@ def refund_seat(course_enrollment, request_user):
try:
refund_ids = ecommerce_api_client(request_user or unenrolled_user).refunds.post(
course_id=course_key_str,
username=unenrolled_user.username,
{'course_id': course_key_str, 'username': unenrolled_user.username}
)
except HttpClientError, exc:
if exc.response.status_code == 403 and request_user != unenrolled_user:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment