Beispiel #1
0
def payment_failed(payment: Payment):
    """
    Save a failed payment
    :param payment: Payment object(Model)
    """
    payment.paid = False
    payment.waiting = False
    payment.cancelled = False
    payment.failed = True
    payment.save()
Beispiel #2
0
def payment_failed(payment: Payment):
    payment.paid = False
    payment.waiting = False
    payment.cancelled = False
    payment.failed = True
    payment.save()