diff --git a/modules/ppcp-api-client/src/Entity/class-amount.php b/modules/ppcp-api-client/src/Entity/class-amount.php index 0148da6b3..1af99f5ab 100644 --- a/modules/ppcp-api-client/src/Entity/class-amount.php +++ b/modules/ppcp-api-client/src/Entity/class-amount.php @@ -74,7 +74,7 @@ class Amount { public function to_array(): array { $amount = array( 'currency_code' => $this->currency_code(), - 'value' => $this->value(), + 'value' => number_format( $this->value(), 2 ), ); if ( $this->breakdown() && count( $this->breakdown()->to_array() ) ) { $amount['breakdown'] = $this->breakdown()->to_array();