From 55baddbb1279a8d7c61795451f885dc1fb007423 Mon Sep 17 00:00:00 2001 From: Patrick Heeney Date: Wed, 21 Dec 2022 22:01:32 +0000 Subject: [PATCH] Change authorize.net private methods to protected --- payment_types/shop_authorize_net_aim_payment.php | 8 ++++---- updates/version.dat | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/payment_types/shop_authorize_net_aim_payment.php b/payment_types/shop_authorize_net_aim_payment.php index 93f17d2..681812c 100644 --- a/payment_types/shop_authorize_net_aim_payment.php +++ b/payment_types/shop_authorize_net_aim_payment.php @@ -144,7 +144,7 @@ public function build_payment_form($host_obj) * Payment processing */ - private function format_form_fields(&$fields) + protected function format_form_fields(&$fields) { $result = array(); foreach($fields as $key=>$val) @@ -153,7 +153,7 @@ private function format_form_fields(&$fields) return implode('&', $result); } - private function post_data($endpoint, $fields) + protected function post_data($endpoint, $fields) { $poststring = array(); @@ -187,12 +187,12 @@ private function post_data($endpoint, $fields) return $response; } - private function parse_response($response) + protected function parse_response($response) { return explode("|", $response); } - private function prepare_fields_log($fields) + protected function prepare_fields_log($fields) { unset($fields['x_login']); unset($fields['x_tran_key']); diff --git a/updates/version.dat b/updates/version.dat index 1208935..b7f8b58 100644 --- a/updates/version.dat +++ b/updates/version.dat @@ -1045,4 +1045,5 @@ #1.37.6 Fixes issue with gateway transaction updates #1.37.8 Adds option to attach copy of invoice as PDF on order status transition notifications #1.37.9 Fixes PHP5 compatibility issue -#1.37.10 Minor improvements and fixes for payment transaction logs and generic reports \ No newline at end of file +#1.37.10 Minor improvements and fixes for payment transaction logs and generic reports +#1.37.11 Minor improvements to Authorize.net AIM class \ No newline at end of file