Skip to content

Commit

Permalink
Merge pull request #14 from patrickheeney/codespace-patrickheeney-did…
Browse files Browse the repository at this point in the history
…actic-barnacle-g4vrpqgj6rhp76g

Change authorize.net private methods to protected
  • Loading branch information
damanic authored Dec 22, 2022
2 parents bccee1a + 55baddb commit 5a3cda7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions payment_types/shop_authorize_net_aim_payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();

Expand Down Expand Up @@ -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']);
Expand Down
3 changes: 2 additions & 1 deletion updates/version.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
#1.37.10 Minor improvements and fixes for payment transaction logs and generic reports
#1.37.11 Minor improvements to Authorize.net AIM class

0 comments on commit 5a3cda7

Please sign in to comment.