Would be nice to be able to define a LoggerInterface to the OnPayAPI client, instead of doing error_log()