Пример #1
0
def on_quickpay_payment_success(sender, ordernumber, **kwargs):
    booking = Booking.objects.get(ordernumber=ordernumber.lstrip('0'))
    booking_confirmed.send(sender=sender, booking_id=booking.id, cardtype=sender.cardtype)
Пример #2
0
def on_paypal_payment_success(sender, **kwargs):
    ipn_obj = sender
    booking = Booking.objects.get(ordernumber=ipn_obj.item_number)
    booking_confirmed.send(sender=ipn_obj, booking_id=booking.pk)