Skip to content

Commit

Permalink
Merge pull request #3 from dogecash/Nugetzrul3-patch-1
Browse files Browse the repository at this point in the history
[Logic] Update parsing of rate
  • Loading branch information
weoka authored Aug 4, 2021
2 parents 1e9f6bb + 8afac1c commit ea3081e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woocommerce-dogecash.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function dogec_process_order($order_id) {

$payment_address = $wc_dogec->payment_address;
$order_total = $order->get_total();
$order_in_crypto = dogec_order_total_in_crypto($order_total, $order_crypto_exchange_rate['result']);
$order_in_crypto = dogec_order_total_in_crypto($order_total, $order_crypto_exchange_rate);
$order_currency = $order->get_currency();

$record_new = $wpdb->insert( $db_table_name, array( 'transaction_id' => "", 'payment_address' => $payment_address, 'order_id'=>$order_id, 'order_total' => $order_total, 'order_in_crypto' => $order_in_crypto, 'order_default_currency' => $order_currency, 'order_crypto_exchange_rate' => $order_crypto_exchange_rate, 'order_status' => 'pending', 'order_time'=>time()) );
Expand Down

0 comments on commit ea3081e

Please sign in to comment.