Skip to content

Commit

Permalink
CIVIEWAY-247 Replace undefined variable with explicit NULL store in v…
Browse files Browse the repository at this point in the history
…alidateEwayContribution
  • Loading branch information
agileware-fj committed Jan 25, 2023
1 parent a0120b6 commit cbec0ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eWAYRecurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,12 @@ function validateEwayContribution($paymentProcessor, $invoiceID) {
if (count($contribution['values']) > 0 && $contribution['values'][0]['total_amount'] > 0) {
// Include eWay SDK.
require_once extensionPath('vendor/autoload.php');
$store = NULL;

$contribution = $contribution['values'][0];
// @TODO $form is an undefined variable
$eWayAccessCode = CRM_Utils_Request::retrieve('AccessCode', 'String', $form, FALSE, "");
$qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $form, FALSE, "");
$eWayAccessCode = CRM_Utils_Request::retrieve('AccessCode', 'String', $store, FALSE, "");
$qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $store, FALSE, "");

$paymentProcessor->validateContribution($eWayAccessCode, $contribution, $qfKey, $paymentProcessor->getPaymentProcessor());

Expand Down

0 comments on commit cbec0ea

Please sign in to comment.