@@ -20,7 +20,6 @@ import { MatButtonModule } from '@angular/material/button';
2020import { MatCardModule } from '@angular/material/card' ;
2121import { MatDividerModule } from '@angular/material/divider' ;
2222import { MatProgressBarModule } from '@angular/material/progress-bar' ;
23- import { RequestUriMethod } from '@app/core/models/TransactionInitializationRequest' ;
2423
2524@Component ( {
2625 selector : 'vc-qr-code' ,
@@ -51,7 +50,7 @@ export class QrCodeComponent implements OnInit, OnDestroy {
5150 transaction ! : ActiveTransaction ;
5251
5352 deepLinkTxt ! : string ;
54- scheme ! : string ;
53+
5554 qrCodeDownloadLink ! : SafeUrl ;
5655 readonly dialog ! : MatDialog ;
5756
@@ -70,12 +69,6 @@ export class QrCodeComponent implements OnInit, OnDestroy {
7069 this . localStorageService = this . injector . get ( LocalStorageService ) ;
7170 this . dialog = this . injector . get ( MatDialog ) ;
7271 this . isCrossDevice = this . deviceDetectorService . isDesktop ( ) ;
73-
74- if ( this . localStorageService . get ( constants . SCHEME ) ) {
75- this . scheme = this . localStorageService . get ( constants . SCHEME ) ?? constants . DEFAULT_SCHEME ;
76- } else {
77- this . scheme = constants . DEFAULT_SCHEME ;
78- }
7972 }
8073
8174 ngOnInit ( ) : void {
@@ -85,7 +78,7 @@ export class QrCodeComponent implements OnInit, OnDestroy {
8578 if ( ! this . transaction ) {
8679 this . navigateService . goHome ( ) ;
8780 } else {
88- this . deepLinkTxt = this . buildQrCode ( this . transaction . initialized_transaction ) ;
81+ this . deepLinkTxt = this . transaction . initialized_transaction . authorization_request_uri ;
8982 if ( this . isCrossDevice ) {
9083 this . pollingRequest ( this . transaction . initialized_transaction . transaction_id ) ;
9184 }
@@ -132,10 +125,6 @@ export class QrCodeComponent implements OnInit, OnDestroy {
132125 return concludedTransaction ;
133126 }
134127
135- private buildQrCode ( data : { client_id : string , request_uri : string , request_uri_method : RequestUriMethod , transaction_id : string } ) : string {
136- return `${ this . scheme } ?client_id=${ encodeURIComponent ( data . client_id ) } &request_uri=${ encodeURIComponent ( data . request_uri ) } &request_uri_method=${ encodeURIComponent ( data . request_uri_method ) } ` ;
137- }
138-
139128 openLogs ( ) {
140129 this . dialog . open ( OpenLogsComponent , {
141130 data : {
0 commit comments