Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active November 25, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/c8500e12872738f1241556852621c723 to your computer and use it in GitHub Desktop.
Save Pebblo/c8500e12872738f1241556852621c723 to your computer and use it in GitHub Desktop.
Example of how to remove the summary section from the auth.net accept payment iframe.
<?php // Please do not include the opening PHP tag if you already have one.
add_filter('FHEE__EEG_AuthorizeNet_Accept__getIFrameUrl__request_params', 'tw_ee_getIFrameUrl__request_params');
function tw_ee_getIFrameUrl__request_params($params){
foreach($params['getHostedPaymentPageRequest']['hostedPaymentSettings']['setting'] as $key => $setting) {
if($setting['settingName'] === 'hostedPaymentOrderOptions') {
$params['getHostedPaymentPageRequest']['hostedPaymentSettings']['setting'][$key] =
array(
'settingName' => 'hostedPaymentOrderOptions',
'settingValue' => json_encode(
array(
'show' => false,
)
)
);
}
}
return $params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment