blob: 352e5efe3b2988710a1efc0f708236e0817fc038 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from postgresqleu.invoices.models import Invoice
from . import BasePayment
class DummyPayment(BasePayment):
description = """
This is a payment method purely for debugging. If you see this in production,
please let the administrator know immediately!
"""
def build_payment_url(self, invoicestr, invoiceamount, invoiceid, returnurl=None):
i = Invoice.objects.get(pk=invoiceid)
if i.recipient_secret:
return "/invoices/dummy/{0}/{1}/".format(invoiceid, i.recipient_secret)
else:
return "/invoices/dummy/{0}/".format(invoiceid)
|