PaymentProecssor - Add frontend_title & make title required
authorColeman Watts <coleman@civicrm.org>
Sun, 19 Mar 2023 23:55:54 +0000 (19:55 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 28 Mar 2023 18:26:33 +0000 (14:26 -0400)
commitdf3b3799337a18ef22e059681ca36784d66f0f1b
treea7716ae2eda6e31dda2c92ba99a8a45d9062fc7d
parent180db4c9591dd45d226d3ea009a53008d90fa5b6
PaymentProecssor - Add frontend_title & make title required

Clarifies the role of 'title' as "for admins" and adds a new "frontend_title" for end-users.

Updates the PaymentProcessor form/dao to use hooks instead of an overloaded "create" function,
and only allows the title and frontend_title instead of the name to be entered on the form.

The name will be autogenerated from the title in the DAO::writeRecord function.
The frontend_title is required in the database but will be filled from `title` if not supplied during `create`

Updates tests, sql and sample data with required field
26 files changed:
CRM/Admin/Form/PaymentProcessor.php
CRM/Core/DAO.php
CRM/Core/I18n/SchemaStructure.php
CRM/Core/I18n/SchemaStructure_5_61_alpha1.php [new file with mode: 0644]
CRM/Financial/BAO/PaymentProcessor.php
CRM/Financial/DAO/PaymentProcessor.php
CRM/Upgrade/Incremental/php/FiveSixtyOne.php
CRM/Upgrade/Incremental/sql/5.61.alpha1.mysql.tpl
CRM/Utils/Hook.php
Civi/Api4/Service/Spec/Provider/PaymentProcessorCreationSpecProvider.php
Civi/Core/Event/PostEvent.php
api/v3/examples/PaymentProcessor/Create.ex.php
ext/contributioncancelactions/tests/phpunit/CancelTest.php
ext/elavon/tests/phpunit/CRM/Core/Payment/ElavonTest.php
ext/ewaysingle/tests/phpunit/CRM/Core/Payment/EwayTest.php
ext/payflowpro/tests/phpunit/CRM/Core/Payment/PayflowProTest.php
sql/civicrm_demo_processor.mysql
sql/civicrm_devel_config.mysql
sql/civicrm_dummy_processor.mysql
sql/civicrm_generated.mysql
tests/phpunit/CRM/Core/PseudoConstantTest.php
tests/phpunit/CRM/Extension/Manager/PaymentTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/PaymentProcessorTest.php
xml/schema/Financial/PaymentProcessor.xml