2013-06-03 16:31:39 +00:00
|
|
|
from pprint import pprint
|
|
|
|
|
2011-10-18 14:42:56 +00:00
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
|
|
import regluit
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
help = "show current status of transactions"
|
|
|
|
|
|
|
|
def handle(self, *args, **kwargs):
|
|
|
|
transactions = regluit.payment.models.Transaction.objects.all()
|
|
|
|
for t in transactions:
|
|
|
|
pd = regluit.payment.paypal.PaymentDetails(t)
|
|
|
|
print pprint(pd.response)
|
|
|
|
print pd.compare()
|
|
|
|
|