Skip to content

Commit

Permalink
[#534] change the payment_processor to dummy, not the payment_process…
Browse files Browse the repository at this point in the history
…or_type
  • Loading branch information
bjendres committed May 27, 2020
1 parent a9ee878 commit 4feb07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Sepa/Upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ public function upgrade_1507() {
// if the payment processors are being used, divert them to the dummy processor
// and issue a warning to install the SDD PP extension
$message = E::ts("Your CiviSEPA payment processors have been disabled, the code was moved into a new extension. If you want to continue using your CiviSEPA payment processors, please install the latest version of the <a href=\"https://github.com/Project60/org.project60.sepapp/releases\">CiviSEPA Payment Processor</a> Extension.");
CRM_Core_DAO::executeQuery("UPDATE civicrm_payment_processor_type SET class_name='Payment_Dummy' WHERE id IN ({$sdd_processor_type_id_list});");
CRM_Core_Session::setStatus($message, E::ts("Warning: SDD Payment Processor Disabled!"), 'warn');
CRM_Core_DAO::executeQuery("UPDATE civicrm_payment_processor SET class_name='Payment_Dummy' WHERE payment_processor_type_id IN ({$sdd_processor_type_id_list});");
CRM_Core_Session::setStatus($message, E::ts("%1 Payment Processor(s) Disabled!", [1 => $use_count]), 'warn');
Civi::log()->warning($message);

} else {
Expand Down

0 comments on commit 4feb07e

Please sign in to comment.