Commit 82bda8f4 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Redirect to contact us if payment_mode isn't supported

   Since payzen/wechat depends on specific currency, so keep default implementation generic, so it allows the user get a contact us message, so it permits the system use wire transfer or non-automatic payments, to proceed with payment.
parent 3b8df87a
...@@ -3,4 +3,4 @@ if (context.getPaymentMode() == "wechat"): ...@@ -3,4 +3,4 @@ if (context.getPaymentMode() == "wechat"):
elif (context.getPaymentMode() == "payzen"): elif (context.getPaymentMode() == "payzen"):
return context.PaymentTransaction_redirectToManualPayzenPayment() return context.PaymentTransaction_redirectToManualPayzenPayment()
else: else:
raise NotImplementedError('not implemented') raise context.PaymentTransaction_triggerPaymentCheckAlarmAndRedirectToPanel(result="contact_us")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment