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
| ip | string | IP address of online transaction. It supports both IPv4 and IPv6 address format. |
31
-
| first_name | string | User's first name. |
32
-
| last_name | string | User's last name. |
33
-
| email | string | User's username. |
34
-
| password | string | User's password. |
35
-
| email | string | User's email address. |
36
-
| user_phone | string | User's phone number. |
37
-
| bill_addr | string | Street address of billing address. |
38
-
| bill_city | string | City of billing address. |
39
-
| bill_state | string | State of billing address. It supports state codes, e.g. NY (New York), for state or province of United States or Canada. Please refer to [State & Province Codes](https://www.fraudlabspro.com/developer/reference/state-and-province-codes) for complete list. |
40
-
| bill_zip_code | string | Postal or ZIP code of billing address. |
41
-
| bill_country | string | Country of billing address. It requires the input of ISO-3166 alpha-2 country code, e.g. US for United States. Please refer to [Country Codes](https://www.fraudlabspro.com/developer/reference/country-codes) for complete list. |
42
-
| user_order_id | string | Merchant identifier to uniquely identify a transaction. It supports maximum of 15 characters user order id input. |
43
-
| user_order_memo | string | Merchant description of an order transaction. It supports maximum of 200 characters. |
44
-
| amount | float | Amount of the transaction. |
45
-
| quantity | integer | Total quantity of the transaction. |
46
-
| currency | string | Currency code used in the transaction. It requires the input of ISO-4217 (3 characters) currency code, e.g. USD for US Dollar. Please refer to [Currency Codes](https://www.fraudlabspro.com/developer/reference/currency-codes) for complete list. |
47
-
| department | string | Merchant identifier to uniquely identify a product or service department. |
| number | string | Billing credit card number or BIN number. |
50
-
| avs | string | The single character AVS result returned by the credit card processor. Please refer to [AVS & CVV2 Response Codes](https://www.fraudlabspro.com/developer/reference/avs-and-cvv2-response-codes) for details. |
51
-
| cvv | string | The single character CVV2 result returned by the credit card processor. Please refer to [AVS & CVV2 Response Codes](https://www.fraudlabspro.com/developer/reference/avs-and-cvv2-response-codes) for details. |
52
-
| ship_addr | string | Street address of shipping address. |
53
-
| ship_city | string | City of shipping address. |
54
-
| ship_state | string | State of shipping address. It supports state codes, e.g. NY - New York, for state or province of United States or Canada. Please refer to [State & Province Codes](https://www.fraudlabspro.com/developer/reference/state-and-province-codes) for complete list. |
55
-
| ship_zip_code | string | Postal or ZIP code of shipping address. |
56
-
| ship_country | string | Country of shipping address. It requires the input of ISO-3166 alpha-2 country code, e.g. US for United States. Please refer to [Country Codes](https://www.fraudlabspro.com/developer/reference/country-codes) for complete list. |
57
-
58
-
```
59
-
import com.fraudlabspro.*;
60
-
import java.util.Hashtable;
61
-
62
-
public class Main {
63
-
64
-
public static void main(String[] args) {
65
-
// Configures FraudLabs Pro API key
66
-
FraudLabsPro.APIKEY = "YOUR_API_KEY";
67
-
68
-
// Screen Order API
69
-
Order order = new Order();
70
-
71
-
// Sets order details
72
-
Hashtable<String, String> data = new Hashtable<>();
73
-
74
-
data.put("ip", "146.112.62.105"); // IP parameter is mandatory
75
-
data.put("first_name", "Hector");
76
-
data.put("last_name", "Henderson");
77
-
data.put("email", "hh5566@gmail.com");
78
-
data.put("user_phone", "561-628-8674");
79
-
80
-
// Billing information
81
-
data.put("bill_addr", "1766 PowderHouse Road");
82
-
data.put("bill_city", "West Palm Beach");
83
-
data.put("bill_state", "FL");
84
-
data.put("bill_country", "US");
85
-
data.put("bill_zip_code", "33401");
86
-
data.put("number", "4556553172971283");
87
-
88
-
// Order information
89
-
data.put("user_order_id", "67398");
90
-
data.put("user_order_memo", "Online shop");
91
-
data.put("amount", "79.89");
92
-
data.put("quantity", "1");
93
-
data.put("currency", "USD");
94
-
data.put("payment_mode", order.CREDIT_CARD); // Please refer reference section for full list of payment methods
95
-
96
-
// Shipping information
97
-
data.put("ship_addr", "4469 Chestnut Street");
98
-
data.put("ship_city", "Tampa");
99
-
data.put("ship_state", "FL");
100
-
data.put("ship_zip_code", "33602");
101
-
data.put("ship_country", "US");
102
-
103
-
String result = order.validate(data); // Sends order details to FraudLabs Pro
| id | string | Unique transaction ID generated from **Validate** function. |
151
-
| action | string | Perform APPROVE, REJECT, or REJECT_BLACKLIST action to transaction. Refer to [reference section](#feedback-status) for status code. |
152
-
| note | string | Notes for the feedback request. |
153
-
154
-
```
155
-
import com.fraudlabspro.*;
156
-
import java.util.Hashtable;
157
-
158
-
public class Main {
159
-
160
-
public static void main(String[] args) {
161
-
// Configures FraudLabs Pro API key
162
-
FraudLabsPro.APIKEY = "YOUR_API_KEY";
163
-
164
-
// Feedback Order API
165
-
Order fb = new Order();
166
-
167
-
// Sets feedback details
168
-
Hashtable<String, String> data = new Hashtable<>();
169
-
data.put("id", "20180709-NHAEUK");
170
-
data.put("action", fb.APPROVE); // Please refer to reference section for full list of feedback statuses
171
-
data.put("note", "This customer made a valid purchase before.");
172
-
173
-
String result = fb.feedback(data); // Sends feedback details to FraudLabs Pro
| tel | string | The recipient mobile phone number in E164 format which is a plus followed by just numbers with no spaces or parentheses. |
189
-
| mesg | string | The message template for the SMS. Add <otp> as placeholder for the actual OTP to be generated. Max length is 140 characters. |
190
-
| otp_timeout | integer | Timeout feature for OTP value in seconds. Default is 3600 seconds(1 hour). Max timeout is 86400 seconds(24 hours). |
191
-
| country_code | string | ISO 3166 country code for the recipient mobile phone number. If parameter is supplied, then some basic telephone number validation is done. |
192
-
193
-
```
194
-
import com.fraudlabspro.*;
195
-
import java.util.Hashtable;
196
-
197
-
public class Main {
198
-
199
-
public static void main(String[] args) {
200
-
// Configures FraudLabs Pro API key
201
-
FraudLabsPro.APIKEY = "YOUR_API_KEY";
202
-
203
-
// Send SMS Verification API
204
-
SMSVerification sms = new SMSVerification();
205
-
206
-
// Sets SMS details for authentication purpose
207
-
Hashtable<String, String> data = new Hashtable<>();
| tran_id | string | The unique ID that was returned by the Send SMS Verification that triggered the OTP sms. |
227
-
| otp | string | The OTP that was sent to the recipient’s phone. |
228
-
229
-
```
230
-
import com.fraudlabspro.*;
231
-
import java.util.Hashtable;
232
-
233
-
public class Main {
234
-
235
-
public static void main(String[] args) {
236
-
// Configures FraudLabs Pro API key
237
-
FraudLabsPro.APIKEY = "YOUR_API_KEY";
238
-
239
-
// Get Verification Result API
240
-
SMSVerification verification = new SMSVerification();
241
-
242
-
// Sets transaction ID and otp details for verification purpose
243
-
Hashtable<String, String> data = new Hashtable<>();
244
-
data.put("tran_id", "UNIQUE_TRANS_ID");
245
-
data.put("otp", "OTP_RECEIVED");
246
-
247
-
String result = verification.verifySMS(data);
248
-
}
249
-
}
250
-
```
251
-
252
-
19
+
# Developer Documentation
20
+
To learn more about installation, usage, and code examples, please visit the developer documentation at [https://fraudlabspro-java.readthedocs.io/en/latest/index.html.](https://fraudlabspro-java.readthedocs.io/en/latest/index.html)
0 commit comments