Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'add/abuse-decision-actions' of github.com:a8cteam51/sif…
Browse files Browse the repository at this point in the history
…t-decisions into add/abuse-decision-actions
  • Loading branch information
chrisfromthelc committed Oct 30, 2024
2 parents 05345b9 + 949aafc commit c305fb7
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions src/inc/abuse-decisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ function process_sift_decision_received( $return_value, $decision_id, $entity_id
}

return $return_value;
return $return_value;
}
add_filter( 'sift_decision_received', __NAMESPACE__ . '\process_sift_decision_received', 10, 5 );

/**
* Handle the 'trust_list_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
/**
* Handle the 'trust_list_payment_abuse' decision.
*
Expand All @@ -74,6 +82,15 @@ function handle_trust_list_payment_abuse( $user_id ) {
unblock_user_from_purchases( $user_id );
}

/**
* Handle the 'looks_good_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'looks_good_payment_abuse' decision.
*
Expand All @@ -85,6 +102,15 @@ function handle_looks_good_payment_abuse( $user_id ) {
unblock_user_from_purchases( $user_id );
}

/**
* Handle the 'not_likely_fraud_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'not_likely_fraud_payment_abuse' decision.
*
Expand All @@ -96,6 +122,15 @@ function handle_not_likely_fraud_payment_abuse( $user_id ) {
unblock_user_from_purchases( $user_id );
}

/**
* Handle the 'likely_fraud_refundno_renew_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'likely_fraud_refundno_renew_payment_abuse' decision.
*
Expand All @@ -111,6 +146,15 @@ function handle_likely_fraud_refundno_renew_payment_abuse( $user_id ) {
display_sgdc_error( 'You are blocked from making purchases due to a recent fraud review. SGDC Error OYBPXRQ' );
}

/**
* Handle the 'likely_fraud_keep_purchases_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'likely_fraud_keep_purchases_payment_abuse' decision.
*
Expand All @@ -123,6 +167,15 @@ function handle_likely_fraud_keep_purchases_payment_abuse( $user_id ) {
display_sgdc_error( 'You are blocked from making purchases due to a recent fraud review. SGDC Error OYBPXRQ' );
}

/**
* Handle the 'fraud_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'fraud_payment_abuse' decision.
*
Expand All @@ -139,6 +192,15 @@ function handle_fraud_payment_abuse( $user_id ) {
force_user_logout( $user_id );
}

/**
* Handle the 'block_wo_review_payment_abuse' decision.
*
* @param integer $user_id The ID of the user.
*
* @return void
*/
}

/**
* Handle the 'block_wo_review_payment_abuse' decision.
*
Expand Down

0 comments on commit c305fb7

Please sign in to comment.