Change updateRecurAndTemplateContribution to take amount parameter directly
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
271 275 * 272 276 * @return String HTML to add to activity details field. 273 277 */ 274 public function updateRecurAndTemplateContribution(array $changeActivity, int $recurID) :string { 275 278 public function updateRecurAndTemplateContribution(int $recurID, float $newAmount) :string { 256 256 257 // As it succeeded, we can update the ContributionRecur 258 $htmlLog = $this->updateRecurAndTemplateContribution($changeActivity, $recur['id']); 259 260 $htmlLog .= '<p> '. date('Y-m-d H:i:s ') . E::ts( 257 if (empty($message)) { 258 // The Payment Processor might not return any message if it was successful 259 $message = 'OK'; 260 } 261 $htmlLog = '<p> '. date('Y-m-d H:i:s ') . E::ts( 261 262 "<p><strong>Successfully updated.</strong> Recurring contribution ID %1 was updated by the payment processor (changeSubscriptionAmount): %2</p>\n", 262 263 [1 => $recur['id'], 2 => $message] 263 264 ); 264 265 266 // As it succeeded, we can update the ContributionRecur 267 $htmlLog .= $this->updateRecurAndTemplateContribution($recur['id'], $newAmount); mentioned in commit 66e8661a
Please register or sign in to reply