Skip to content

Commit e8aa54f

Browse files
Add message on fail #25
1 parent a2820ae commit e8aa54f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ public static function processPaymentResponse($params) {
768768
* - fail
769769
*/
770770
protected function redirectOrExit($outcome) {
771+
if ($outcome === 'fail') {
772+
CRM_Core_Session::setStatus(ts('Your payment was not successful. Please try again'));
773+
}
774+
771775
if (($success_url = $this->getStoredUrl($outcome)) != FALSE) {
772776
CRM_Utils_System::redirect($success_url);
773777
}

0 commit comments

Comments
 (0)