Last active
November 25, 2019 14:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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