Skip to content

Commit

Permalink
CRM-20697 - Add checksum to pay now link
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed Mar 28, 2018
1 parent 730ed80 commit 58b0963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contribute/Form/Contribution/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,9 @@ public function assignFormVariablesByContributionID() {
if (empty($this->_ccid)) {
return;
}
if (!$this->getContactID()) {
CRM_Core_Error::statusBounce(ts("Returning since there is no contact attached to this contribution id."));
}

$payment = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_ccid, 'contribution');
//bounce if the contribution is not pending.
Expand Down

0 comments on commit 58b0963

Please sign in to comment.