Bug 11622 - Add ability to pay fees and fines from OPAC via PayPal
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 23 Jan 2014 20:18:29 +0000 (15:18 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 13:27:14 +0000 (13:27 +0000)
commit85c5efa0c7fc98f30cc5983ba476c7712bb1dcac
tree33f7ab5be1277bddea027031086bcd6dde26b1b7
parentc66e7475f8bb55b4adf9ffc8a474dc80a9d45b4d
Bug 11622 - Add ability to pay fees and fines from OPAC via PayPal

This patch adds the ability for a logged in user to pay fines and
fees from the OPAC via PayPal.

Test Plan:
 1) Apply this patch
 2) Create a paypal developer account
 3) Create two test accounts, a Personal account and a Business account
 4) Enable PayPal in Sandbox mode via the system preferences.
 5) Enter the business account API credentials into the new system
    preferences.
 6) Create a new patron, add some fines/fees
 7) Log in as that patron in the OPAC
 8) Choose to pay via PayPal, log in as the sandbox Personal account
 9) Complete the transaction
10) Note the fee is now paid

Signed-off-by: Carol Corrales <ccorrales@losgatosca.gov>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_11622.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account-pay-return.tt [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt
opac/opac-account-pay-paypal-return.pl [new file with mode: 0755]
opac/opac-account-pay.pl [new file with mode: 0755]
opac/opac-account.pl