Skip to content

Commit

Permalink
Supported new parameters in Screen Order API
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudlabspro committed Aug 30, 2024
1 parent c1df83a commit b9faa82
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ To learn more about installation, usage, and code examples, please visit the dev
| ------------------------------------ |
| [objectOfOrder].CREDIT_CARD |
| [objectOfOrder].PAYPAL |
| [objectOfOrder].GOOGLE_CHECKOUT |
| [objectOfOrder].CASH_ON_DELIVERY |
| [objectOfOrder].MONEY_ORDER |
| [objectOfOrder].WIRE_TRANSFER |
| [objectOfOrder].BANK_DEPOSIT |
| [objectOfOrder].BITCOIN |
| [objectOfOrder].GIFT_CARD |
| [objectOfOrder].CRYPTO |
| [objectOfOrder].WIRE_TRANSFER |
| [objectOfOrder].OTHERS |


Expand Down
11 changes: 7 additions & 4 deletions docs/source/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ Retrieve geolocation information for an IP address.
| username | string | User's username. |
| password | string | User's password. |
| email | string | (optional) User's email address. |
| phone | string | (optional) User's phone number. |
| user_phone | string | (optional) User's phone number. |
| bill_addr | string | (optional) Street address of billing address. |
| bill_city | string | (optional) City of billing address. |
| bill_state | string | (optional) State of billing address. It supports state codes, e.g. NY (New York), for state or province of United States or Canada.|
| bill_country | string | (optional) Country of billing address. It requires the input of ISO-3166 alpha-2 country code, e.g. US for United States.|
| bill_zip_code | string | (optional) Postal or ZIP code of billing address. |
| ship_last_name | string | (optional) Receiver's last name. |
| ship_first_name | string | (optional) Receiver's first name. |
| ship_addr | string | (optional) Street address of shipping address. |
| ship_city | string | (optional) City of shipping address. |
| ship_state | string | (optional) State of shipping address. It supports state codes, e.g. NY - New York, for state or province of United States or Canada. |
Expand All @@ -124,12 +126,13 @@ Retrieve geolocation information for an IP address.
| avs | string | (optional) The single character AVS result returned by the credit card processor. |
| cvv | string | (optional) The single character CVV2 result returned by the credit card processor.<br/> This is not for the input of the actual CVV code from the back of the credit card. |
| user_order_id | string | (optional) Merchant identifier to uniquely identify a transaction. It supports<br/> maximum of 15 characters user order id input. |
| user_order_memo | string | (optional) Merchant description of an order transaction. It supports maximum of 200 characters. |
| amount | float | (optional) Amount of the transaction. |
| user_order_memo | string | (optional) Merchant description of an order transaction. It supports maximum of 200 characters. |
| amount | float | (optional) Amount of the transaction. |
| quantity | integer | (optional) Total quantity of the transaction. |
| currency | string | (optional) Currency code used in the transaction. It requires the input of<br/> ISO-4217 (3 characters) currency code, e.g. USD for US Dollar. |
| department | string | (optional) Merchant identifier to uniquely identify a product or service department. |
| payment_mode | string | (optional) Payment mode of transaction. Valid values: creditcard \| affirm \| paypal \| googlecheckout \| bitcoin \| cod \| moneyorder \| wired \|<br/> bankdeposit \| elviauthorized \| paymitco \| cybersource \| sezzle \| viabill \| amazonpay \| pmnts_gateway \| giftcard \| ewayrapid \| others. |
| payment_gateway | string | (optional) The name of payment gateway used to capture the payment. |
| payment_mode | string | (optional) Payment mode of transaction. Valid values: creditcard \| paypal \| cod \| bankdeposit \| giftcard \| crypto \| wired \| others |
:return: Returns the geolocation information in array. Refer below table for the fields avaliable in the array
:rtype: array
Expand Down
3 changes: 3 additions & 0 deletions docs/source/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ public class Main {
data.put("amount", "79.89");
data.put("quantity", "1");
data.put("currency", "USD");
data.put("payment_gateway", "stripe");
data.put("payment_mode", order.CREDIT_CARD); // Please refer reference section for full list of payment methods

// Shipping information
data.put("ship_first_name", "Hector");
data.put("ship_last_name", "Henderson");
data.put("ship_addr", "4469 Chestnut Street");
data.put("ship_city", "Tampa");
data.put("ship_state", "FL");
Expand Down
2 changes: 1 addition & 1 deletion src/com/fraudlabspro/FraudLabsPro.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class FraudLabsPro {
*
* string
*/
public static final String VERSION = "4.0.0";
public static final String VERSION = "4.0.1";

/**
* API KEY From Merchant
Expand Down
7 changes: 3 additions & 4 deletions src/com/fraudlabspro/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ public class Order{
*/
public final String CREDIT_CARD = "CREDITCARD";
public final String PAYPAL = "PAYPAL";
public final String GOOGLE_CHECKOUT = "GOOGLECHECKOUT";
public final String CASH_ON_DELIVERY = "COD";
public final String MONEY_ORDER = "MONEYORDER";
public final String WIRE_TRANSFER = "WIRED";
public final String BANK_DEPOSIT = "BANKDEPOSIT";
public final String BITCOIN = "BITCOIN";
public final String GIFT_CARD = "GIFTCARD";
public final String CRYPTO = "CRYPTO";
public final String WIRE_TRANSFER = "WIRED";
public final String OTHERS = "OTHERS";

/**
Expand Down

0 comments on commit b9faa82

Please sign in to comment.