def payment_successful_handler(sender, **kwargs):
    if sender.payment_status == "Completed":
        try:
            token = ShoppingToken.objects.get(value=sender.invoice)
            token.payed = True
            token.save()
        except __HOLE__:
            pass
dataset/ETHPy150Open y-a-r-g/idea-color-themes/backend/views/themes.py/payment_successful_handler