Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #3260975 replaces Deprecated call to drupal_set_message #689

Merged
merged 2 commits into from
Jan 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/WebformCivicrmPostProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,9 @@ private function submitIPNPayment() {
$paymentProcessor->doPayment($params);
}
catch (\Civi\Payment\Exception\PaymentProcessorException $e) {
drupal_set_message(ts('Payment approval failed with message: ') . $e->getMessage(),'error');
\Drupal::messenger()->addError(ts('Payment approval failed with message: %error ', [
'%error' => $e->getMessage(),
]));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Fixed.

\CRM_Utils_System::redirect($this->getIpnRedirectUrl('cancel'));
}

Expand Down