Plugin Directory

Changeset 2553644


Ignore:
Timestamp:
06/25/2021 04:15:57 AM (5 years ago)
Author:
boldpay
Message:

amount passed to BoldPay API is always in 2 decimal place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bold-pay/trunk/src/boldpay.php

    r2356760 r2553644  
    126126        } else {
    127127            $order_id = $customer_order->get_id();
    128             $amount   = $customer_order->get_total();
     128            $amount   = wc_format_decimal( $customer_order->get_total(), 2 );
    129129            $name     = $customer_order->get_billing_first_name() . ' ' . $customer_order->get_billing_last_name();
    130130            $email    = $customer_order->get_billing_email();
Note: See TracChangeset for help on using the changeset viewer.