Skip to content

Commit

Permalink
Update Order notes message on underpayment
Browse files Browse the repository at this point in the history
  • Loading branch information
anktd committed Mar 24, 2023
1 parent cc9550d commit 3ef08dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php/Blockonomics.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,7 @@ public function add_coupon_on_underpayment($paid_satoshi, $order, $wc_order){
$coupon->set_usage_limit(1);// limit coupon to one time use
$coupon->save();
$wc_order->apply_coupon($coupon_code);

$coupon_note = "Partial payment received for " .get_woocommerce_currency()." ".sprintf('%0.2f', round($coupon->get_amount(), 2)). " and applied as a coupon.";
$coupon_note = "Partial payment of " .get_woocommerce_currency()." ".sprintf('%0.2f', round($coupon->get_amount(), 2)). " received via Blockonomics and applied as a coupon. Customer has been mailed invoice to pay remaining amount";
$wc_order->add_order_note(__( $coupon_note, 'blockonomics-bitcoin-payments' ));
}

Expand Down

0 comments on commit 3ef08dd

Please sign in to comment.