mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
amount value should be a string when send to the api
This commit is contained in:
parent
9dc95c0e28
commit
5de7c081f2
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