コード例 #1
0
 def credit(self, orig_txn):
     try:
         txn = facade.credit(orig_txn.comment1)
     except Exception, e:
         messages.error(self.request, _("Unable to credit transaction - %s") % e)
         return http.HttpResponseRedirect(reverse('paypal-payflow-detail',
                                                  kwargs={'pk': orig_txn.id}))
コード例 #2
0
ファイル: views.py プロジェクト: squamous/django-oscar-paypal
 def credit(self, orig_txn):
     try:
         txn = facade.credit(orig_txn.comment1)
     except Exception, e:
         messages.error(self.request, _("Unable to credit transaction - %s") % e)
         return http.HttpResponseRedirect(reverse('paypal-payflow-detail',
                                                  kwargs={'pk': orig_txn.id}))
コード例 #3
0
ファイル: views.py プロジェクト: evonove/django-oscar-paypal
 def credit(self, orig_txn):
     try:
         txn = facade.credit(orig_txn.comment1)
     except Exception as e:
         messages.error(self.request,
                        _("Unable to credit transaction - %s") % e)
         return redirect('payflow_dashboard:paypal-payflow-detail',
                         pk=orig_txn.id)
     else:
         messages.success(self.request,
                          _("Transaction %s credited") % orig_txn.pnref)
         return redirect('payflow_dashboard:paypal-payflow-detail',
                         pk=txn.id)