mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #77 from woocommerce/issue-76-amount-value-should-be-string
Amount value should be a string when send to the api
This commit is contained in:
commit
97c78b02a9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue