diff --git a/app/services/proofing/resolution/plugins/threat_metrix_plugin.rb b/app/services/proofing/resolution/plugins/threat_metrix_plugin.rb index f16176b9911..a4be25bb0ef 100644 --- a/app/services/proofing/resolution/plugins/threat_metrix_plugin.rb +++ b/app/services/proofing/resolution/plugins/threat_metrix_plugin.rb @@ -24,7 +24,7 @@ def call( ddp_pii = applicant_pii.merge( threatmetrix_session_id: threatmetrix_session_id, email: user_email, - request_id: request_ip, + request_ip: request_ip, ) timer.time('threatmetrix') do diff --git a/spec/services/proofing/resolution/plugins/threatmetrix_plugin_spec.rb b/spec/services/proofing/resolution/plugins/threatmetrix_plugin_spec.rb index f59639e4a47..210a4497696 100644 --- a/spec/services/proofing/resolution/plugins/threatmetrix_plugin_spec.rb +++ b/spec/services/proofing/resolution/plugins/threatmetrix_plugin_spec.rb @@ -44,7 +44,12 @@ def sp_cost_count it 'calls the ThreatMetrix proofer' do call - expect(plugin.proofer).to have_received(:proof) + expect(plugin.proofer).to have_received(:proof).with( + **applicant_pii, + threatmetrix_session_id: threatmetrix_session_id, + email: user_email, + request_ip: request_ip, + ) end it 'creates a ThreatMetrix associated cost' do