Skip to content

Commit

Permalink
Fix config serialization (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzsk authored Sep 23, 2020
1 parent ce9a722 commit fbb074b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Gateway/PayuBiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,9 @@ public function fields(): array
->except(['endpoint', 'salt'])
->all();
}

public static function __set_state(array $config)
{
return new self($config);
}
}
5 changes: 5 additions & 0 deletions src/Gateway/PayuMoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ public function fields(): array
->except(['auth', 'endpoint', 'salt'])
->all();
}

public static function __set_state(array $config)
{
return new self($config);
}
}

0 comments on commit fbb074b

Please sign in to comment.