Skip to content

Commit

Permalink
Fix indirect vars for PHP 7 compatibility (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored and zcwilt committed Jul 31, 2016
1 parent 890b7b1 commit 2170232
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/modules/pages/payer_auth_verifier/header_php.php
Expand Up @@ -97,8 +97,8 @@
$authenticate_data_array = array('transaction_id' => $_SESSION['3Dsecure_transactionId'],
'payload' => $_POST["PaRes"]);

if (is_object($$payment_module)) {
$authenticate_resp_array = $$payment_module->get3DSecureAuthenticateResponse($authenticate_data_array);
if (is_object(${$payment_module})) {
$authenticate_resp_array = ${$payment_module}->get3DSecureAuthenticateResponse($authenticate_data_array);
}

$shouldContinue = $authenticate_resp_array['continue_flag'];
Expand Down Expand Up @@ -150,9 +150,9 @@
////////////////////////////////////////////////////////////////////
// Business rules are set to prompt for another form of payment
////////////////////////////////////////////////////////////////////
$error = $$payment_module->get_authentication_error();
$error = ${$payment_module}->get_authentication_error();

$messageStack->add_session('checkout_payment', $error . '<!-- ['.$$payment_module->code.'] -->', 'error');
$messageStack->add_session('checkout_payment', $error . '<!-- ['.${$payment_module}->code.'] -->', 'error');
$redirectPage = zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false);
}

Expand Down Expand Up @@ -184,9 +184,9 @@ function onLoadHandler(){

<?php
// Call pre_confirmation_check on the underlying payment module.
$$payment_module->pre_confirmation_check();
${$payment_module}->pre_confirmation_check();
// output the appropriate POST vars so form can be processed for submission to gateway
echo $$payment_module->process_button();
echo ${$payment_module}->process_button();
?>
<noscript>
<br><br>
Expand Down

0 comments on commit 2170232

Please sign in to comment.