Use wc_float_to_string on item prices sent to paypal

Fixes #15872
This commit is contained in:
Mike Jolley 2017-06-30 10:28:21 +01:00
parent b999864fa1
commit bf6c39fbf2
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ class WC_Gateway_Paypal_Request {
$item = apply_filters( 'woocommerce_paypal_line_item', array(
'item_name' => html_entity_decode( wc_trim_string( $item_name ? $item_name : __( 'Item', 'woocommerce' ), 127 ), ENT_NOQUOTES, 'UTF-8' ),
'quantity' => (int) $quantity,
'amount' => (float) $amount,
'amount' => wc_float_to_string( (float) $amount ),
'item_number' => $item_number,
), $item_name, $quantity, $amount, $item_number );