<?php
/**
 * PeachPay Square order transaction fees.
 *
 * @var WC_Order $order
 * @var string   $currency ISO currency code (uppercase).
 *
 * @package PeachPay
 */

defined( 'PEACHPAY_ABSPATH' ) || exit;
?>
<tr>
	<td class="label">
		<?php esc_html_e( 'Square Fee:', 'peachpay-for-woocommerce' ); ?>
	</td>
	<td width="1%"></td>
	<td class="total">
		<?php
		$fee = -PeachPay_Square::display_amount( PeachPay_Square_Order_Data::total_fees( $order ), $currency );
		// PHPCS:ignore
		echo wc_price( $fee, array( 'currency' => $currency ) );
		?>
	</td>
</tr>
<tr>
	<td class="label">
		<?php esc_html_e( 'Square Net Payout:', 'peachpay-for-woocommerce' ); ?>
	</td>
	<td width="1%"></td>
	<td class="total">
		<?php
		$net = PeachPay_Square::display_amount( PeachPay_Square_Order_Data::total_payout( $order ), $currency );
		// PHPCS:ignore
		echo wc_price( $net, array( 'currency' => $currency ) );
		?>
	</td>
</tr>
