Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_paid(sender, **kwargs):
- print "CHEGOU NO METODO ON_PAID"
- transaction = kwargs.pop('transaction')
- ref = transaction['reference']
- status = transaction['status']
- print "IMPRIMINDO A REFERENCIA QUE CHEGOU EM ref = transaction['reference'] ", ref
- p = Pedido()
- p = Pedido.objects.get(reference=ref)
- p.statuspagamento = status
- print "AQUI E O STATUS"
- print p.statuspagamento
- p.save()
- transaction_paid.connect(on_paid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement