mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
do not use comma seperator when using number_format
This commit is contained in:
parent
97c78b02a9
commit
f7635fc51c
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class Amount {
|
|||
public function to_array(): array {
|
||||
$amount = array(
|
||||
'currency_code' => $this->currency_code(),
|
||||
'value' => number_format( $this->value(), 2 ),
|
||||
'value' => number_format( $this->value(), 2, '.', '' ),
|
||||
);
|
||||
if ( $this->breakdown() && count( $this->breakdown()->to_array() ) ) {
|
||||
$amount['breakdown'] = $this->breakdown()->to_array();
|
||||
|
|
|
@ -65,7 +65,7 @@ class Money {
|
|||
public function to_array(): array {
|
||||
return array(
|
||||
'currency_code' => $this->currency_code(),
|
||||
'value' => number_format( $this->value(), 2 ),
|
||||
'value' => number_format( $this->value(), 2, '.', '' ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue