You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-20Lines changed: 30 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,12 @@ Riskified JAVA SDK
4
4
version: 2.3.2
5
5
------------------
6
6
7
-
See http://apiref.riskified.com for full API documentation
7
+
See http://apiref.riskified.com for full API documentation
8
8
9
-
see riskified-sample/ for examples on how to use this SDK.
9
+
see riskified-sample/ for examples on how to use this SDK.
10
10
11
11
Data validation:
12
+
12
13
---------------
13
14
The SDK includes a validation mechanism to help you catch formatting and data issues quickly.
14
15
However, it is possible to control the level of validation, through the SDKs Validation object,
@@ -17,48 +18,58 @@ For example, you can tell the Validation engine to ignore missing values, by pas
17
18
Validations.ignoreMissing
18
19
19
20
like this:
20
-
```
21
+
22
+
```text
21
23
RiskifiedClient client = new RiskifiedClient(domain, authToken, Environment.SANDBOX, Validation.IGNORE_MISSING);
22
24
```
25
+
23
26
Or specify the validation type in the config file 'riskified_sdk.properties'.
24
27
25
-
Available validation types:
26
-
* none - disable validations
27
-
* ignoreMissing - validates only the data format
28
-
* all - validates the data format and that required fields are not missing
28
+
Available validation types:
29
29
30
+
* none - disable validations
31
+
* ignoreMissing - validates only the data format
32
+
* all - validates the data format and that required fields are not missing
30
33
31
34
PSD2: Advise endpoint old response testing:
35
+
32
36
-------------------------------------------
33
37
Riskified changed the /advice endpoint response. To enable the old response for testing purposes, follow steps below:
34
-
1. Open riskified_sdk.properties file
35
-
2. Set "enable_old_advise_response" to "true"
36
38
37
-
Riskified SDK will return the old advise response.
39
+
1. Open riskified_sdk.properties file
40
+
2. Set "enable_old_advise_response" to "true"
38
41
42
+
Riskified SDK will return the old advise response.
39
43
40
44
Prerequisites:
45
+
41
46
---------------
42
-
* Java JDK-1.5 or higher
47
+
48
+
* Java JDK-1.5 or higher
43
49
44
50
Running the samples:
51
+
45
52
--------------------------
53
+
46
54
***Build the SDK** - Run `mvn package` which will build both the SDK and the samples
47
-
***Configure your properties** (authKey and shopUrl) - in the riskified-sdk/src/main/resources/riskified_sdk.properties file.
48
-
Your Riskified's authorization token (authKey) can be found in the [advanced settings section](https://sandbox.riskified.com/main/settings/advanced) of your Riskified sandbox environment.
55
+
***Configure your properties** (authKey and shopUrl) - in the riskified-sdk/src/main/resources/riskified_sdk.properties file.
56
+
Your Riskified's authorization token (authKey) can be found in the [advanced settings section](https://sandbox.riskified.com/main/settings/advanced) of your Riskified sandbox environment.
49
57
50
58
## Simple order creation sample
59
+
51
60
This samples shows how to construct an Order model and invoke the basic api/create endpoint
This samples shows how to construct an Order model and save it locally as a Json file, this sample is useful for early stages of the integration and for POCs
0 commit comments