Skip to content

Commit 3d407f7

Browse files
false[adyen-sdk-automation] automated change (#299)
1 parent e875a30 commit 3d407f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Adyen/services/checkout/recurring_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ def get_tokens_for_stored_payment_details(self, idempotency_key=None, **kwargs):
2929
method = "GET"
3030
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3131

32+
def stored_payment_methods(self, request, idempotency_key=None, **kwargs):
33+
"""
34+
Create a token to store payment details
35+
"""
36+
endpoint = self.baseUrl + f"/storedPaymentMethods"
37+
method = "POST"
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
39+

0 commit comments

Comments
 (0)