Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Adyen/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def payment_result(self, request=None, **kwargs):
return self.client.call_checkout_api(request, action, **kwargs)

def payment_captures(self, path_param, request=None, idempotency_key=None, **kwargs):
if path_param is None or "":
if path_param == "":
raise ValueError(
'must contain a pspReference in the path_param, path_param cannot be empty'
)
Expand All @@ -350,15 +350,15 @@ def payments_cancels_with_reference(self, path_param, request=None, idempotency_
return self.client.call_checkout_api(request, action, path_param, idempotency_key, **kwargs)

def payments_reversals(self, path_param, request=None, idempotency_key=None, **kwargs):
if path_param is None or "":
if path_param == "":
raise ValueError(
'must contain a pspReference in the path_param, path_param cannot be empty'
)
action = "paymentsReversals"
return self.client.call_checkout_api(request, action, path_param, idempotency_key, **kwargs)

def payments_refunds(self, path_param, request=None, idempotency_key=None, **kwargs):
if path_param is None or "":
if path_param == "":
raise ValueError(
'must contain a pspReference in the path_param, path_param cannot be empty'
)
Expand Down