regluit/payment
Raymond Yee a252f9d173 [#22561067] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+
One overrides regluit.utils.localdatetime._now to do "time travel" -- useful for testing scenarios requiring time changes (such as Campaigns)
Get rid of call references to datetime.datetime.now() or utcnow() and datetime.date.today() in favor of regluit.utils.localdatetime.now() and date_today().
2012-03-09 00:45:39 +00:00
..
management artifact of some download? 2011-10-18 21:33:22 -04:00
migrations Adding Transaction.approved field (migration needed!) 2012-01-11 09:40:51 -08:00
README.txt Adding missing README 2011-09-27 08:56:50 -04:00
__init__.py Adding pledge payment support 2011-09-27 08:48:11 -04:00
manager.py [#22561067] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+ 2012-03-09 00:45:39 +00:00
models.py Adding Transaction.approved field (migration needed!) 2012-01-11 09:40:51 -08:00
parameters.py Added Receiver and PaymentResponse to admin interface 2012-01-03 13:37:20 -05:00
paypal.py BUG FIX: must use request.POST.get("approved", 'None') to get approved attribute in IPN 2012-01-11 13:58:29 -08:00
tests.py [#22561067] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+ 2012-03-09 00:45:39 +00:00
urls.py First round of having debug URLs available only if not in preview mode 2012-01-18 09:08:34 -08:00
views.py Allow modifications if the amount is equal to max amount (not just less) 2012-01-06 10:32:52 -05:00

README.txt

Setup instructions for payment module

1)  In parameters.py, set the following:

    PAYPAL_USERNAME = Paypal username from developer.paypal.com
    PAYPAL_PASSWORD =  Paypal password from developer.paypal.com
    PAYPAL_SIGNATURE = Paypal signature from developer.paypal.com
    PAYPAL_APPID = 'APP-80W284485P519543T' (for all sandbox apps), or the real APPID

    BASE_URL = Set this to the server IP address that is accessible via port 80.  
                Local IP addresses, or non-port 80 addresses will NOT work with paypal IPN.
                
    COMPLETE_URL = relative local URL for a plege confirmation
    CANCEL_URL = relative local url for a pledge cacellation
    
2) Sync the database to include the payment specific tables

3) Configure your paypal sandbox account at developer.paypal.com with at least 1 seller and 1 buyer.  The buyer info is entered into the sandbox, the seller
    info needs to be entered into the pledge/payment itself

4) A test pledge code sample is available in regluit.payment.view.testPledge