Plugin registry¶
Plugin registry is a convenient way to handle multiple brokers that can support different currencies and provide different flows.
Internal API¶
-
class
getpaid.registry.
PluginRegistry
¶ -
register
(module_or_proc)¶ Register module containing PaymentProcessor class or a PaymentProcessor directly.
-
get_choices
(currency)¶ Get plugins that support given currency, in CHOICES format.
-
property
urls
¶ Provide URL structure for all registered plugins that have urls defined.
-
get_all_supported_currency_choices
()¶ Get all currencies that are supported by at least one plugin, in CHOICES format.
-