Skip to content

Commit

Permalink
Update PaymentDetails.php
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Sep 11, 2023
1 parent 01828cd commit a6e1658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PaymentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public static function from_json( $method, $json ) {

$details = new PaymentDetails();

foreach ( $json as $key => $value ) {
$data = (array) $json;

foreach ( $data as $key => $value ) {
$details->{$key} = $value;
}

Expand Down

0 comments on commit a6e1658

Please sign in to comment.