Bugzilla – Attachment 120635 Details for
Bug 23215
Remove PayPal logic from Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23215: Remove PayPal-related sysprefs
Bug-23215-Remove-PayPal-related-sysprefs.patch (text/plain), 5.59 KB, created by
Kyle M Hall (khall)
on 2021-05-06 15:22:10 UTC
(
hide
)
Description:
Bug 23215: Remove PayPal-related sysprefs
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-05-06 15:22:10 UTC
Size:
5.59 KB
patch
obsolete
>From 702dee3b4b6e18bc131ff219fc94e535824c0cea Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 5 May 2021 10:16:18 -0300 >Subject: [PATCH] Bug 23215: Remove PayPal-related sysprefs > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../data/mysql/atomicupdate/bug_23215.perl | 17 ++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 7 --- > .../en/modules/admin/preferences/opac.pref | 43 ------------------- > 3 files changed, 17 insertions(+), 50 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_23215.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_23215.perl b/installer/data/mysql/atomicupdate/bug_23215.perl >new file mode 100644 >index 0000000000..4808bd07d4 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_23215.perl >@@ -0,0 +1,17 @@ >+$DBversion = 'XXX'; >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do(q{ >+ DELETE FROM systempreferences >+ WHERE variable IN >+ ('EnablePayPalOpacPayments', >+ 'PayPalChargeDescription', >+ 'PayPalPwd', >+ 'PayPalReturnURL', >+ 'PayPalSandboxMode', >+ 'PayPalSignature', >+ 'PayPalUser'); >+ }); >+ >+ NewVersion( $DBversion, 23215, "Remove core PayPal support in favor of the use of plugins"); >+} >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index f163912142..356ed3d924 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -523,14 +523,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('PatronSelfRegistrationPrefillForm','1',NULL,'Display password and prefill login form after a patron has self registered','YesNo'), > ('PatronSelfRegistrationVerifyByEmail','0',NULL,'If enabled, any patron attempting to register themselves via the OPAC will be required to verify themselves via email to activate their account.','YesNo'), > ('PatronsPerPage','20','20','Number of Patrons Per Page displayed by default','Integer'), >-('EnablePayPalOpacPayments', '0', NULL , 'Enables the ability to pay fees and fines from the OPAC via PayPal', 'YesNo' ), > ('PatronQuickAddFields', '', NULL , 'A list of fields separated by "|" to be displayed along with mandatory fields in the patron quick add form if chosen at patron entry', 'Free' ), >-('PayPalChargeDescription', 'Koha fee payment', NULL , 'This preference defines what the user will see the charge listed as in PayPal', 'Free'), >-('PayPalPwd', '', NULL , 'Your PayPal API password', 'Free'), >-('PayPalReturnURL','BaseURL','BaseURL|OPACAlias','Specify whether PayPal will return to the url specified in the OPACBaseURL option or to the OPAC\'s alias url.','Choice'), >-('PayPalSandboxMode', '1', NULL , 'If enabled, the system will use PayPal''s sandbox server for testing, rather than the production server.', 'YesNo'), >-('PayPalSignature', '', NULL , 'Your PayPal API signature', 'Free'), >-('PayPalUser', '', NULL , 'Your PayPal API username ( email address )', 'Free'), > ('PhoneNotification','0',NULL,'If ON, enables generation of phone notifications to be sent by plugins','YesNo'), > ('PrefillGuaranteeField', 'phone,email,streetnumber,address,city,state,zipcode,country', NULL, 'Prefill these fields in guarantee member entry form from guarantor patron record', 'Multiple'), > ('PrefillItem','0','','When a new item is added, should it be prefilled with last created item values?','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index 8e56f74984..c1c211d7a4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -893,49 +893,6 @@ OPAC: > subtype: Subtypes > sorting: Sorting > location: Location and availability >- Payments: >- - >- - pref: EnablePayPalOpacPayments >- default: 1 >- choices: >- 1: Allow >- 0: "Don't allow" >- - "patrons to make payments from the OPAC via PayPal in" >- - pref: PayPalSandboxMode >- default: 1 >- choices: >- 1: "sandbox" >- 0: "production" >- - "mode." >- - "<br/><strong>Warning</strong>: this functionality has been deprecated in favor of using payment plugins that can implement different payment services." >- - >- - "The email address to receive PayPal payments is " >- - pref: PayPalUser >- class: email >- - "." >- - >- - "The password for the PayPal account to receive payments is " >- - pref: PayPalPwd >- class: long >- - "." >- - >- - "The signature for the PayPal account to receive payments is " >- - pref: PayPalSignature >- class: long >- - "." >- - >- - "The patron should see the charge description as " >- - pref: PayPalChargeDescription >- class: long >- - "." >- - >- - "After payment or cancellation, PayPal should return to the " >- - pref: PayPalReturnURL >- default: BaseURL >- choices: >- BaseURL: "OPACBaseURL" >- OPACAlias: "configured return URL" >- - "." > Authentication: > - > - pref: OPACShibOnly >-- >2.24.3 (Apple Git-128)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23215
:
120519
|
120520
|
120634
| 120635 |
120636