Skip to content

Commit

Permalink
SDK-2311:Added set setting for biometric consent screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 7, 2023
1 parent 43f91e7 commit 397c10e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocScan/Session/Create/SdkConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ public function getAttemptsConfiguration(): ?AttemptsConfiguration
*/
public function getBiometricConsentFlow(): ?string
{
return $this->privacyPolicyUrl;
return $this->biometricConsentFlow;
}
}
4 changes: 4 additions & 0 deletions tests/DocScan/Session/Create/SdkConfigBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class SdkConfigBuilderTest extends TestCase
private const SOME_PRIVACY_POLICY_URL = 'somePrivacyPolicyUrl';
private const SOME_CATEGORY = 'someCategory';
private const SOME_NUMBER_RETRIES = 5;
private const SOME_BIOMETRIC_CONSENT_FLOW = 'someBiometricConsentFlow';


/**
* @test
Expand Down Expand Up @@ -118,6 +120,7 @@ public function shouldProduceTheCorrectJsonString()
->withErrorUrl(self::SOME_ERROR_URL)
->withPrivacyPolicyUrl(self::SOME_PRIVACY_POLICY_URL)
->withAllowHandoff(true)
->withBiometricConsentFlow(self::SOME_BIOMETRIC_CONSENT_FLOW)
->build();

$expected = [
Expand All @@ -131,6 +134,7 @@ public function shouldProduceTheCorrectJsonString()
'error_url' => self::SOME_ERROR_URL,
'privacy_policy_url' => self::SOME_PRIVACY_POLICY_URL,
'allow_handoff' => true,
'biometric_consent_flow' => self::SOME_BIOMETRIC_CONSENT_FLOW
];

$this->assertJsonStringEqualsJsonString(json_encode($expected), json_encode($result));
Expand Down

0 comments on commit 397c10e

Please sign in to comment.