Exemplo n.º 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()
Exemplo n.º 2
0
def payment_failed(payment: Payment):
    payment.paid = False
    payment.waiting = False
    payment.cancelled = False
    payment.failed = True
    payment.save()