Skip to content

Commit

Permalink
CIVIEWAY-259 Add class_name upgrade to PaymentProcessor entities
Browse files Browse the repository at this point in the history
Fixes "No extension instances of the 'eWay_Recurring' payment processor
were found." error on recuring payment job
  • Loading branch information
agileware-fj committed Aug 9, 2023
1 parent cca20cd commit 83afe12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CRM/eWAYRecurring/Upgrader.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Civi\Api4\PaymentProcessor;
use Civi\Api4\PaymentProcessorType;
use CRM_eWAYRecurring_ExtensionUtil as E;

Expand Down Expand Up @@ -55,12 +56,17 @@ public function upgrade_20300() {
return TRUE;
}

public function upgrade_20600() {
$this->ctx->log->info('Apply 2.6.0 update; Update class names for eWAYRecurring payment processor type.');
public function upgrade_20601() {
$this->ctx->log->info('Apply 2.6.1 update; Update class names for eWAYRecurring payment processor type.');
PaymentProcessorType::update(FALSE)
->addValue('class_name', 'Payment_eWAYRecurring')
->addWhere('class_name', '=', 'au.com.agileware.ewayrecurring')
->execute();
PaymentProcessor::update(FALSE)
->addValue('class_name', 'Payment_eWAYRecurring')
->addWhere('class_name', '=', 'au.com.agileware.ewayrecurring')
->addWhere('is_test', 'IS NOT NULL')
->execute();
return TRUE;
}

Expand Down
4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<email>support@agileware.com.au</email>
</maintainer>
<develStage>stable</develStage>
<releaseDate>2023-07-21</releaseDate>
<version>2.6.0</version>
<releaseDate>2023-08-09</releaseDate>
<version>2.6.1</version>
<compatibility>
<ver>5.38</ver>
</compatibility>
Expand Down

0 comments on commit 83afe12

Please sign in to comment.