File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -994,7 +994,12 @@ $request = $mf->withDevice(
994994# To get the minFraud Factors response model, use ->factors():
995995$factorsResponse = $request->factors();
996996
997- print($factorsResponse->subscores->emailAddress . "\n");
997+ foreach ($factorsResponse->riskScoreReasons as $riskScoreReason) {
998+ print($riskScoreReason->multiplier . "\n");
999+ foreach ($riskScoreReason->reasons as $reason) {
1000+ print($reason->code . ': ' . $reason->reason . "\n");
1001+ }
1002+ }
9981003
9991004# To get the minFraud Insights response model, use ->insights():
10001005$insightsResponse = $request->insights();
@@ -1234,7 +1239,12 @@ factors_model = assessment.factors.body
12341239
12351240factors_model.warnings.each { |w | puts w.warning }
12361241
1237- p factors_model.subscores.email_address
1242+ factors_model.risk_score_reasons.each do |risk_score_reason |
1243+ p risk_score_reason.multiplier
1244+ risk_score_reason.reasons.each do |reason |
1245+ p " #{ reason.code } : #{ reason.reason } "
1246+ end
1247+ end
12381248p factors_model.risk_score
12391249
12401250# To get the Insights response model, use #insights.
You can’t perform that action at this time.
0 commit comments