Support for inofficial languages

This commit is contained in:
Raphael Michel
2018-03-08 13:19:57 +01:00
parent d879634810
commit 162f37e00f
8 changed files with 127 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
def refresh_order(order):
if not order.payment_provider.startswith('stripe_'):
raise ValueError("Not a stripe payment")
prov = order.event.get_payment_providers()[order.payment_provider]
prov._init_api()