Changeset 3442586
- Timestamp:
- 01/19/2026 01:50:00 PM (9 months ago)
- Location:
- procharge-payment-gateway
- Files:
-
- 2 edited
-
tags/1.0.11/procharge-payment-gateway.php (modified) (3 diffs)
-
trunk/procharge-payment-gateway.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
procharge-payment-gateway/tags/1.0.11/procharge-payment-gateway.php
r3442565 r3442586 1 session_start();2 1 <?php 3 2 /* … … 131 130 function procharge_init_gateway() 132 131 { 132 session_start(); 133 133 134 class ProchargePaymentsGateway extends WC_Payment_Gateway 134 135 { … … 472 473 if($procharge_selected_adminfee_type == 1) { // percent 473 474 $procharge_admin_fee = ("FALSE" == $procharge_environment) ? ($this->admin_fee * 0.01) : ($this->test_admin_fee * 0.01); 474 $procharge_fee_amount = $procharge_order->order_total * number_format($procharge_admin_fee, 2);475 $procharge_fee_amount = round($procharge_order->order_total * number_format($procharge_admin_fee, 2), 2); 475 476 } 476 477 477 478 if($procharge_selected_adminfee_type == 2) { // cash 478 $procharge_fee_amount = ("FALSE" == $procharge_environment) ? $this->admin_fee : $this->test_admin_fee;479 $procharge_fee_amount = round(("FALSE" == $procharge_environment) ? $this->admin_fee : $this->test_admin_fee, 2); 479 480 $procharge_payment_total = number_format(round(floatval($procharge_order->order_total), 2), 2); 480 481 } -
procharge-payment-gateway/trunk/procharge-payment-gateway.php
r3442565 r3442586 1 session_start();2 1 <?php 3 2 /* … … 131 130 function procharge_init_gateway() 132 131 { 132 session_start(); 133 133 134 class ProchargePaymentsGateway extends WC_Payment_Gateway 134 135 { … … 472 473 if($procharge_selected_adminfee_type == 1) { // percent 473 474 $procharge_admin_fee = ("FALSE" == $procharge_environment) ? ($this->admin_fee * 0.01) : ($this->test_admin_fee * 0.01); 474 $procharge_fee_amount = $procharge_order->order_total * number_format($procharge_admin_fee, 2);475 $procharge_fee_amount = round($procharge_order->order_total * number_format($procharge_admin_fee, 2), 2); 475 476 } 476 477 477 478 if($procharge_selected_adminfee_type == 2) { // cash 478 $procharge_fee_amount = ("FALSE" == $procharge_environment) ? $this->admin_fee : $this->test_admin_fee;479 $procharge_fee_amount = round(("FALSE" == $procharge_environment) ? $this->admin_fee : $this->test_admin_fee, 2); 479 480 $procharge_payment_total = number_format(round(floatval($procharge_order->order_total), 2), 2); 480 481 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)