Render payment info on 'Confirm' page

This commit is contained in:
Raphael Michel
2015-03-11 11:34:46 +01:00
parent 6d12d4826d
commit 3e392f7ed4
4 changed files with 24 additions and 0 deletions

View File

@@ -98,6 +98,13 @@ class BasePaymentProvider:
ctx = Context({'request': request, 'form': form})
return template.render(ctx)
def checkout_confirm_render(self, request) -> str:
"""
Returns the HTML that should be displayed when the user selected this provider
on the 'confirm order' page.
"""
raise NotImplementedError()
def checkout_prepare(self, request, total) -> "bool|HttpResponse":
"""
Will be called if the user selects this provider as his payment method.