Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 98 additions & 1 deletion test_integration_app/events_api/test_events_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,23 @@ function create_account()
'$social_sign_on_type' => '$twitter',
'$account_types' => ['merchant', 'premium'],

// Structured fields (KYC / geo / bot detection)
'$nationality' => 'US',
'$year_of_birth' => 1985,
'$kyc' => array(
'$names_match' => true,
'$kyc_level' => '$basic',
'$provider' => 'lexisnexis'
),
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$human',
'$provider' => 'datadome'
),

// Suggested Custom Fields
'twitter_handle' => 'billyjones',
'work_phone' => '1-347-555-5921',
Expand Down Expand Up @@ -625,6 +642,21 @@ function create_order()
)
),

// Structured fields (KYC / geo / bot detection)
'$kyc' => array(
'$names_match' => true,
'$kyc_level' => '$basic',
'$provider' => 'lexisnexis'
),
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$human',
'$provider' => 'datadome'
),

// Sample Custom Fields
'digital_wallet' => 'apple_pay', // 'google_wallet', etc.
'coupon_code' => 'dollarMadness',
Expand Down Expand Up @@ -697,6 +729,16 @@ function login()
'$site_domain' => 'sift.com',
'$site_country' => 'US',

// Structured fields (geo / bot detection)
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$human',
'$provider' => 'datadome'
),

// Send this information with a login from a BROWSER client.
'$browser' => array(
'$user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',
Expand Down Expand Up @@ -883,6 +925,21 @@ function transaction()
// For marketplaces, use $seller_user_id to identify the seller
'$seller_user_id' => 'slinkys_emporium',

// Structured fields (KYC / geo / bot detection)
'$kyc' => array(
'$names_match' => true,
'$bin_nationality_match' => false,
'$provider' => 'prove'
),
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$suspected',
'$provider' => 'human_security'
),

// Sample Custom Fields
'digital_wallet' => 'apple_pay', // 'google_wallet', etc.
'coupon_code' => 'dollarMadness',
Expand Down Expand Up @@ -942,6 +999,23 @@ function update_account()
'$social_sign_on_type' => '$twitter',
'$account_types' => ['merchant', 'premium'],

// Structured fields (KYC / geo / bot detection)
'$nationality' => 'US',
'$year_of_birth' => 1985,
'$kyc' => array(
'$names_match' => true,
'$kyc_level' => '$full',
'$provider' => 'prove'
),
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$human',
'$provider' => 'datadome'
),

// Send this information from a BROWSER client.
'$browser' => array(
'$user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',
Expand Down Expand Up @@ -1348,6 +1422,21 @@ function update_order()
)
),

// Structured fields (KYC / geo / bot detection)
'$kyc' => array(
'$names_match' => true,
'$kyc_level' => '$basic',
'$provider' => 'lexisnexis'
),
'$geo' => array(
'$uuid' => 'gc-abc-123',
'$provider' => 'geocomply'
),
'$bot_identification' => array(
'$result' => '$human',
'$provider' => 'datadome'
),

// Sample Custom Fields
'digital_wallet' => 'apple_pay', // 'google_wallet', etc.
'coupon_code' => 'dollarMadness',
Expand Down Expand Up @@ -1401,7 +1490,15 @@ function verification()
'$reason' => '$automated_rule', // Verification was triggered based on risk score
'$verification_type' => '$sms',
'$verified_value' => '14155551212',
'$verified_entity_id' => $GLOBALS['session_id']
'$verified_entity_id' => $GLOBALS['session_id'],

// Structured fields (KYC)
'$kyc' => array(
'$names_match' => true,
'$kyc_level' => '$basic',
'$bin_nationality_match' => false,
'$provider' => 'lexisnexis'
)
);

return $this->client->track('$verification', $properties);
Expand Down
Loading