How to tell the API to use Sandbox?
Closed this issue · 3 comments
lordspace commented
It seems I can sign up for https://sandbox.maxmind.com.
I am getting this error. What if the sandbox site prefixes the keys with test or sandbox just like Stripe does?
Error: Your account ID or license key could not be authenticated.
.. or maybe introduce withSandbox() method or something
horgh commented
You need to tell the client to use the sandbox host. You do that by passing in $options
when creating the client. For example:
$options = [ 'host' => 'sandbox.maxmind.com' ];
$mf = new MinFraud(1, 'ABCD567890', $options);