Skip to content

Commit

Permalink
Removed reseller interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudlabspro committed Jul 6, 2018
1 parent a9ae3d2 commit 1980502
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 357 deletions.
109 changes: 0 additions & 109 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,82 +160,6 @@ FraudLabsPro\Order::feedback([



## Reseller Usage

### Create Account

#### Object Properties

| Property Name | Property Type | Description |
| ------------- | :-----------: | ------------------------------------------------------------ |
| username | string | Username of the new account. |
| email | string | Email address of the new account. |
| name | string | Full name of the new user. |
| address1 | string | Address field. |
| address2 | string | Additional address field. |
| city | string | City name. |
| state | string | State name. |
| postcode | string | ZIP code/Postal code. |
| country | string | Country code. 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. |
| phone | string | Phone number. |
| fax | string | Fax number. |
| company | string | Company name. |
| industry | string | Industry ID of the business involved. Please refer to [reference section](#business-industry) for complete list. |


```
require_once 'lib/FraudLabsPro.php';
// Configures FraudLabs Pro Reseller key
FraudLabsPro\Configuration::resellerKey('YOUR_RESELLER_KEY');
// User details
$userDetails = [
'username' => 'banana88',
'email' => 'banana88@gmail.com',
'name' => 'Richard J. Quintanilla',
'address1' => '1056 Eagle Street',
'address2' => '',
'city' => 'Carbondale',
'state' => 'IL',
'postcode' => '62901',
'country' => 'US',
'phone' => '618-351-4860',
'fax' => '',
'company' => 'The Monster Inc.',
// Refer reference section for full list of industries
'industry' => FraudLabsPro\Account::ONLINE_GAMES,
];
// Creates user account
$result = FraudLabsPro\Account::create($userDetails);
```



### Subscribe Plan

#### Object Properties

| Property Name | Property Type | Description |
| ------------- | :-----------: | ------------------------------------------------------------ |
| username | string | Username of the account. |
| plan | string | Plan code for the plan. Please refer to [reference section](#fraudlabs-pro-plan) for the complete list. |

```
require_once 'lib/FraudLabsPro.php';
// Configures FraudLabs Pro Reseller key
FraudLabsPro\Configuration::resellerKey('YOUR_RESELLER_KEY');
// Subscribe to Micro plan
FraudLabsPro\Account::subscribe([
'username' => $result->username,
// Please refer to reference section for full list of plans
'plan' => FraudLabsPro\Account::MICRO_PLAN,
]);
```


## SMS Verification

Expand Down Expand Up @@ -317,39 +241,6 @@ FraudLabsPro\SMSVerification::verifysms([



#### Business Industry

| Business Industry |
| ---------------------------------------- |
| FraudLabsPro\Account::RETAIL_E_COMMERCE |
| FraudLabsPro\Account::RETAIL_BRICK_AND_MORTAR |
| FraudLabsPro\Account::HOSPITALITY_AND_ACCOMMODATION |
| FraudLabsPro\Account::TICKETING_AND_EVENTS |
| FraudLabsPro\Account::CLUBS_AND_BUYING_GROUPS |
| FraudLabsPro\Account::MEMBERSHIPS_AND_SUBSCRIPTIONS |
| FraudLabsPro\Account::DIGITAL_CONTENT |
| FraudLabsPro\Account::ONLINE_GAMES |
| FraudLabsPro\Account::SOFTWARE |
| FraudLabsPro\Account::TELEPHONE_SERVICES |
| FraudLabsPro\Account::TRAVEL |
| FraudLabsPro\Account::NON_PROFIT_AND_CHARITY |
| FraudLabsPro\Account::SERVICES |
| FraudLabsPro\Account::HIGH_RISK_MERCHANTS |



#### FraudLabs Pro Plan

| FraudLabs Pro Plan |
| ---------------------------- |
| FraudLabsPro\Account::MICRO |
| FraudLabsPro\Account::MINI |
| FraudLabsPro\Account::SMALL |
| FraudLabsPro\Account::MEDIUM |
| FraudLabsPro\Account::LARGE |




LICENCE
=====================
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"description": "FraudLabs Pro PHP SDK to help merchants to detect fraud order and therefore reduce chargebacks.",
"license": "MIT",
"version": "3.1.0",
"version": "3.1.1",
"authors": [
{
"name": "FraudLabs Pro",
Expand Down
51 changes: 0 additions & 51 deletions example-reseller.php

This file was deleted.

119 changes: 0 additions & 119 deletions lib/FraudLabsPro/Account.php

This file was deleted.

Loading

0 comments on commit 1980502

Please sign in to comment.