Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Template to display either unpaid instructions or paid summary on the Thank You order confirmation page.
4 *
5 * @see \BrianHenryIE\WP_Bitcoin_Gateway\API_Interface::get_order_details()
6 *
7 * @var array<string, mixed> $args The full array of data passed to the template function.
8 * @var WC_Order $order The order that Bitcoin is being used to pay.
9 *
10 * @package    brianhenryie/bh-wp-bitcoin-gateway
11 */
12
13if ( ! $order->is_paid() ) {
14
15    wc_get_template( 'bitcoin-unpaid.php', $args );
16
17} else {
18
19    wc_get_template( 'bitcoin-paid.php', $args );
20}