Commit Graph

78 Commits (4259e055d0960528b4387503950887aca74b1f67)

Author SHA1 Message Date
Raymond Yee f7e8e41c71 First round of having debug URLs available only if not in preview mode 2012-01-18 09:08:34 -08:00
Raymond Yee 51cc7d4389 IMPORTANT: Transactions that are ACTIVE status must also have approved=True to be counted as an effectlvely active Transaction.
Changes in two tests are made to reflect this change.
2012-01-11 15:31:26 -08:00
Raymond Yee 9130aa8b4a The approved flag from IPNs for Preapprovals now captured properly. 2012-01-11 22:46:59 +00:00
Raymond Yee 9d7be4849a BUG FIX: must use request.POST.get("approved", 'None') to get approved attribute in IPN 2012-01-11 13:58:29 -08:00
Raymond Yee 712b803334 PreapprovalDetails now capturing approved flag
partial work on IPN to capture approved flag
2012-01-11 13:47:56 -08:00
Raymond Yee 7202e97f19 Allow for PaymentManager.checkStatus() to receive specific list of Transaction to process 2012-01-11 11:50:08 -08:00
Raymond Yee 25bc05050a Starting to refactor PaymentManager.checkStatus() to be able to handle transactions we pass in....first step is to factor out methods to handle Preapprovals vs Payments 2012-01-11 11:12:12 -08:00
Raymond Yee c5c9951c3d Fixed a bug in PaymentManager.checkStatus() -- I was appending statuses for recipients in the wrong place 2012-01-11 10:43:12 -08:00
Raymond Yee 0c7c912200 Adding Transaction.approved field (migration needed!) 2012-01-11 09:40:51 -08:00
Raymond Yee 54f2411ab9 Put in a basic page for a pledge completion. 2012-01-10 17:15:39 -08:00
Raymond Yee 01f5664bf5 Some very basic functionality associated with cancel_url, including the ability to try again on the pledge. 2012-01-10 15:26:04 -08:00
Raymond Yee 3abd29f225 First pass at passing in campaign id into cancel_url (which is now calculated in payment/manager.py) 2012-01-10 12:16:04 -08:00
Raymond Yee be67d9e14f Allow modifications if the amount is equal to max amount (not just less)
Fixed a small typo in the comments for payment.views
2012-01-06 10:32:52 -05:00
Raymond Yee 7012039aef Merge branch 'jkace' of github.com:Gluejar/regluit into payment 2012-01-05 15:21:45 -05:00
icellama21 e9d293199c Fixing bug in paypal checkStatus to separate preapproval max_amount from current amount 2012-01-05 12:56:20 -05:00
Raymond Yee 5e91827366 addition of max_amount to payment.models.Transaction 2012-01-05 09:55:18 -05:00
icellama21 b0b6d83f75 Adding payment code for refund and modification of existing transactions 2012-01-05 01:42:05 -05:00
Raymond Yee d106ff6f3d Run only TransactionTest right now in payment.tests because others require selenium to run 2012-01-04 11:04:18 -05:00
Raymond Yee c5e84d7006 Moved campaigntest.py to test/campaigntest.py
Added a simple selenium test to campaigntest to illustrate how to do a google search and test for the presence of text
Updated payment.tests to use the right settings for PayPal sandbox accounts
payment.tests.AuthorizeTest working for RY on laptop.  PledgeTest is going through the motions but not quite working yet
2012-01-04 10:52:19 -05:00
Raymond Yee eb147b3cd4 Added support for incomplete and completed payments in the PaymentManger query function 2012-01-03 14:49:37 -05:00
Raymond Yee d3f25cd788 Added Receiver and PaymentResponse to admin interface
Dropping all Receiver and PaymentResponse in campaigntest.drop_all_transactions
Added a __unicode__ method to Receiver and PaymentResponse
Added some more documentation of PayPal status parameters
2012-01-03 13:37:20 -05:00
Raymond Yee 81fc04ef12 Merge branch 'master' of github.com:Gluejar/regluit into payment 2012-01-03 09:53:51 -05:00
Raymond Yee 4292e1be0a whitespace change 2012-01-03 09:53:29 -05:00
Andromeda Yelton 1f29f7538d authorized_list was scanning ALL transactions, not just those in the transaction list passed into the function 2012-01-02 10:47:36 -05:00
Raymond Yee 56787c3c7b Adjust transaction test to have a deadline 6 months in the future 2011-12-29 10:17:11 -05:00
Raymond Yee a757f6f99b Versions that include movement to utcnow() and changing what comes out PaymentManager.checkStatus() -- but payment to primary recipient is now broken. Need to investigate 2011-12-22 20:34:24 -05:00
Raymond Yee 21c009998a Starting to display more information about recipients tied to transactions 2011-12-21 18:33:36 -05:00
Raymond Yee 17d4acceab changed PaymentManager.cancel to PaymentManager.cancel_transaction and added PaymentManager.cancel_campaign to parallel other methods in PaymentManager
morphing the campaign_admin view towards being able to push all the campaigns through the various states
2011-12-21 17:32:08 -05:00
Raymond Yee 1872615f2a Added a signal to handle the deletion of a transaction. Don't expect to delete transactions in production but for testing, it's important to get the current Campaign tally right based on transactions 2011-12-21 15:28:31 -05:00
Raymond Yee 4c9bf21ce8 Got rid of a bunch of print statements 2011-12-21 13:49:24 -05:00
Raymond Yee c3c0249b42 Added a PaymentManager.finish_campaign()
Fixed a small bug in which r['status'] is None and being attached as a text node in PaymentManager.checkStatus()
2011-12-21 12:31:58 -05:00
Raymond Yee 75fceed7c5 Now display the campaigns with three different types of transactions: ACTIVE, INCOMPLETE, COMPLETED on the campaign_admin view 2011-12-20 20:36:27 -05:00
Raymond Yee c055767173 set the expiry date based on the campaign deadline. There is a setting PREAPPROVAL_PERIOD_AFTER_CAMPAIGN for specifying how many days after the campaign deadline should we ask for a preapproval deadline. I've put in 90 days. 2011-12-20 14:56:01 -05:00
Raymond Yee bad343e3d2 views.py: wiring in the email address of partnering non-profit
payment/manager.py: wire in the email address of the campaign recipient and the Gluejar commission rate
move the Gluejar commission rate to dev.py/prod.py
2011-12-19 18:34:30 -05:00
Raymond Yee 09a0e5ba8b Merging jkace's changes into payment en route to integrating into master 2011-12-14 08:52:48 -08:00
Jason c2c3168e5a Updating payment code to support delayed chained payments. Adding entry points for delayed execution of payments. Creating common parent class for all paypal transactions to more accurately track metadata 2011-12-14 08:30:37 -05:00
eric 7bfc4849a4 added a column to track amount remaining on a campaign; updated by the Transaction change signal 2011-12-14 00:53:03 -05:00
Raymond Yee 5a27dae1d1 Allow the number of days in the past to be configured for PaymentManager.checkStatus (while keeping default of 3 days for now) 2011-12-08 09:13:23 -08:00
Jason 0d6bc2f68a Adding prepaymentdetails api, enhanced error checking for paymentdetails API 2011-12-06 09:36:18 -05:00
eric 34dd5237af merged with raymond's commit 2011-12-02 19:37:27 -05:00
Raymond Yee 48666339a9 Some documentation of paypal/Transaction model 2011-11-28 17:33:49 -08:00
Raymond Yee 2cbdd797d5 Stripped some parameters from payment/parameters that belong in settings 2011-11-28 16:38:28 -08:00
Raymond Yee 57640ec7b2 First pass at unwiring campaign_detail from the real pledge view. 2011-11-28 15:39:06 -08:00
Raymond Yee b6d9f7463d More debugging messages 2011-11-23 11:39:51 -08:00
Raymond Yee a9ab0e45e6 adding more debugging info about Paypal PAY and PREAPPROVAL
Getting rid of final '/' in prod.py: BASE_URL
2011-11-23 09:41:11 -08:00
Raymond Yee e526c1c3c2 Forot to import sys! 2011-11-23 09:12:37 -08:00
Raymond Yee 5494b282cf Trying to print out ipn info to stderr to see it in the Apache log 2011-11-23 09:07:07 -08:00
Raymond Yee 979a403a06 Merge branch 'jkace' of github.com:Gluejar/regluit into payment
Conflicts:
	frontend/templates/campaign_detail.html
	frontend/views.py
2011-11-22 11:30:45 -08:00
Jason 58eb67e0aa Adding code to support embedded payments 2011-11-22 06:14:58 -05:00
Ed Summers d57f93f6f2 added new migrations 2011-11-21 11:29:37 -05:00