def thankyou(request, txid): tx = PaypalRequest.get(txid) if not tx: raise Http404("Transaction not found") return render_to_response('store/thankyou.html', { 'tx' : tx }, RequestContext(request))
def tran(): #tx = PaypalRequest.get_by_id(request.POST["item_number"]) tx = PaypalRequest.get(request.POST["custom"]) if not tx: raise Http404("Transaction not found") return tx.process_ipn(request)