File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ def payment_providers_list( # TODO(discuss): Move: to API?
55
55
self ,
56
56
only_available : bool = True ,
57
57
) -> JsonResponse [dict [str , PaymentProviderResult ]]:
58
+ """
59
+ Get a list of payment providers.
60
+
61
+ This method returns a JSON response containing a dictionary of payment
62
+ providers. The keys represent provider identifiers, and the values are
63
+ instances of `PaymentProviderResult` (dict) containing the details of each provider.
64
+
65
+ :param only_available: If ``True`` (default), only payment providers that
66
+ are currently available will be included in the response.
67
+ If ``False``, all providers will be listed regardless of availability.
68
+ :return: A JSON response with a dictionary of payment providers.
69
+ """
58
70
return JsonResponse (self .get_payment_providers (only_available ))
59
71
60
72
def get_payment_providers (
@@ -238,7 +250,7 @@ def checkout_start(
238
250
order_key : db .Key ,
239
251
):
240
252
"""
241
- Starts the checkout process.
253
+ Start the checkout process.
242
254
243
255
Requires no errors in :meth:`self.can_checkout`.
244
256
"""
You can’t perform that action at this time.
0 commit comments