Skip to content

Commit 3d1d9ff

Browse files
author
Adyen Automation
committed
[create-pull-request] automated change
1 parent e77690d commit 3d1d9ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Adyen/services/checkout/payments_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ def __init__(self, client=None):
1212
super(PaymentsApi, self).__init__(client=client)
1313
self.service = "checkout"
1414

15+
def get_synchronous_result_of_payment_session(self, sessionId, idempotency_key=None, **kwargs):
16+
"""
17+
Get a synchronous result of a payment session
18+
"""
19+
endpoint = f"/sessions/{sessionId}"
20+
method = "GET"
21+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
22+
1523
def card_details(self, request, idempotency_key=None, **kwargs):
1624
"""
1725
Get the list of brands on the card

0 commit comments

Comments
 (0)