Skip to content

Commit f90cb52

Browse files
committed
Add Sandbox information
1 parent f98d2b0 commit f90cb52

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ arguments. For example:
4848
WebServiceClient client = new WebServiceClient.Builder(6, "ABCD567890").build();
4949
```
5050

51+
If you would like to use the Sandbox environment, you can use the `host` method
52+
that belongs to the Bulder. For example,
53+
```java
54+
WebServiceClient.Builder.host("sandbox.maxmind.com")
55+
```
56+
5157
Then create a new `Transaction` object. This represents the transaction that
5258
you are sending to minFraud. The class is instantiated using an inner builder
5359
class, `Transaction.Builder`. Each builder method takes a corresponding

src/main/java/com/maxmind/minfraud/WebServiceClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ public WebServiceClient.Builder disableHttps() {
138138

139139
/**
140140
* @param val The host to use.
141+
* By default, the client connects to the production host. However,
142+
* during testing and development, you can set this option to
143+
* 'sandbox.maxmind.com' to use the Sandbox environment's host. The
144+
* sandbox allows you to experiment with the API without affecting your
145+
* production data.
141146
* @return Builder object
142147
*/
143148
public WebServiceClient.Builder host(String val) {

0 commit comments

Comments
 (0)