Skip to content

Commit e164082

Browse files
authored
Merge pull request #231 from getyoti/release/3.6.0
Release/3.6.0
2 parents 5c9d35b + 9bad888 commit e164082

23 files changed

+931
-592
lines changed

.github/workflows/sonar.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Sonar Scan
2-
on: [push, pull_request_target]
2+
3+
on: [ push, pull_request_target ]
4+
35

46
jobs:
57
sonar:
@@ -15,16 +17,17 @@ jobs:
1517
- uses: actions/checkout@v2
1618
with:
1719
fetch-depth: 0
18-
1920
- uses: shivammathur/[email protected]
2021
with:
2122
php-version: 8.0
2223

2324
- run: composer install
2425
- run: composer coverage-clover
25-
26+
- run: composer coverage-html
27+
28+
- name: Fix code coverage paths
29+
run: sed -i 's/\/home\/runner\/work\/yoti-php-sdk\/yoti-php-sdk\//\/github\/workspace\//g' ./coverage/coverage.xml
2630
- uses: sonarsource/sonarcloud-github-action@master
2731
env:
2832
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2933
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30-

.travis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yoti/yoti-php-sdk",
33
"description": "Yoti SDK for quickly integrating your PHP backend with Yoti",
4-
"version": "3.5.0",
4+
"version": "3.6.0",
55
"keywords": [
66
"yoti",
77
"sdk"

examples/doc-scan/app/Http/Controllers/HomeController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Yoti\DocScan\Session\Create\Check\RequestedFaceMatchCheckBuilder;
1010
use Yoti\DocScan\Session\Create\Check\RequestedIdDocumentComparisonCheckBuilder;
1111
use Yoti\DocScan\Session\Create\Check\RequestedLivenessCheckBuilder;
12+
use Yoti\DocScan\Session\Create\Check\RequestedThirdPartyIdentityCheckBuilder;
1213
use Yoti\DocScan\Session\Create\Filters\Orthogonal\OrthogonalRestrictionsFilterBuilder;
1314
use Yoti\DocScan\Session\Create\Filters\RequiredIdDocumentBuilder;
1415
use Yoti\DocScan\Session\Create\Filters\RequiredSupplementaryDocumentBuilder;
@@ -44,6 +45,10 @@ public function show(Request $request, DocScanClient $client)
4445
(new RequestedIdDocumentComparisonCheckBuilder())
4546
->build()
4647
)
48+
->withRequestedCheck(
49+
(new RequestedThirdPartyIdentityCheckBuilder())
50+
->build()
51+
)
4752
->withRequestedTask(
4853
(new RequestedTextExtractionTaskBuilder())
4954
->withManualCheckAlways()
@@ -65,6 +70,7 @@ public function show(Request $request, DocScanClient $client)
6570
->withPresetIssuingCountry('GBR')
6671
->withSuccessUrl(config('app.url') . '/success')
6772
->withErrorUrl(config('app.url') . '/error')
73+
->withPrivacyPolicyUrl(config('app.url') . '/privacy-policy')
6874
->build()
6975
)
7076
->withRequiredDocument(
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@extends('layouts.app')
2+
3+
@section('content')
4+
<div class="container">
5+
<div class="row pt-4">
6+
<div class="col">
7+
<h1>Privacy Policy</h1>
8+
<p>Demo privacy policy</p>
9+
</div>
10+
</div>
11+
</div>
12+
@endsection

0 commit comments

Comments
 (0)