Skip to content

Commit

Permalink
Fix: missing btc_amount_received in array available to templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Jul 18, 2022
1 parent f99bc43 commit 6f6eb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/class-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
}

Expand Down

0 comments on commit 6f6eb66

Please sign in to comment.