Get amount from django-paypal


I am using django-paypal to receive payment. I am currently paying as well as receiving payment using sandbox accounts. The payment procedure seems to be working fine.

My problem is once I get back the signal valid_ipn_received, I am trying to get the amount of money from the transaction.

I went through <a href="https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNandPDTVariables/#id08CTB0S055Z" rel="nofollow">this list</a> of variables returned by Paypal. I also went through <a href="https://github.com/spookylukey/django-paypal/blob/master/paypal/standard/models.py" rel="nofollow">this model</a> to see where it is stored. It seems the amount is stored in auth_amount? However I'm getting a 'None' from that variable. Is this because I'm using a sandbox account? How do I get the amount of transaction?


Figured this out a while ago by reading the docs. Posting the answer here.

Apparently, this is how you do it:

amount = ipn_obj.mc_gross


  • Visual Basic Vending Machine
  • What is the best SIMPLE replacement for VS Setup-project Installer for WinXP + WPF + .NET 4.0? [clos
  • Exit from a loop that contains time delay immediately after a key is pressed
  • Net-ssh session timeout
  • ASP.NET - Efficiently delay code execution for single request?
  • CHAR vs VARCHAR for password security
  • Grails Cannot get property 'id' on null object
  • How can I sum two different columns at once where one contains Decimal objects in pandas?
  • How to develop MS CRM kind of application
  • Running sp_executesql query expects parameter @statement
  • Peer to peer/adaptive payments with paypal [closed]
  • Issue with SVN Commit for certain File Extension
  • Full 8 bit adder, illogical output
  • How do I create an image and save it for later to draw as texture in XNA?
  • How to send control C to Mac Terminal using python?
  • Paypal 'Buy Now' button not letting me dynamically set the price
  • RESTful compliant design
  • Insertion large number of Entities into SQL Server 2012 [duplicate]
  • triggering user space with kernel
  • Time out Error in send mail
  • ApplePay PKPaymentAuthorizationViewController always shows processing
  • Intel-64 and ia32 atomic operations acquire-release semantics and GCC 5+
  • Force show.bind execution
  • Should I or shouldn't I use the CachingConnectionFactory with hornetq 2.4.1
  • Dynamically accessing properties of knockoutjs observable array
  • Jenkins: How To Build multiple projects from a TFS repository?
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • angularjs unit test when to use $rootScope.$new()
  • Running a C# exe file
  • Join two tables and save into third-sql
  • Perl system calls when running as another user using sudo
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • How can I estimate amount of memory left with calling System.gc()?
  • Matrix multiplication with MKL
  • Hits per day in Google Big Query
  • File not found error Google Drive API
  • Converting MP3 duration time