From 6f6eb6614b8054793b71524f458bd50e83dea3ee Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Mon, 18 Jul 2022 13:07:17 -0700 Subject: [PATCH] Fix: missing btc_amount_received in array available to templates. --- src/API/class-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/class-api.php b/src/API/class-api.php index 6d0c0fe..924353f 100644 --- a/src/API/class-api.php +++ b/src/API/class-api.php @@ -523,7 +523,7 @@ public function get_formatted_order_details( WC_Order $order, bool $refresh = tr $order_details['exchange_rate_url'] = $exchange_rate_url; // Unchanged data. - foreach ( array( 'order', 'btc_total', 'btc_exchange_rate', 'btc_address', 'transactions', 'status' ) as $key ) { + foreach ( array( 'order', 'btc_total', 'btc_exchange_rate', 'btc_address', 'transactions', 'btc_amount_received', 'status' ) as $key ) { $result[ $key ] = $order_details[ $key ]; }