mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Merge pull request #85 from woocommerce/issue-84-fix-number-format-defaults
do not use comma seperator when using number_format
This commit is contained in:
commit
d4d6e615f2
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