File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class RestClient extends HTTPClient {
55
55
method : "post" ,
56
56
url : baseURL ?? this . baseURL ?? "" ,
57
57
headers : {
58
+ // $FlowIssue
58
59
Authorization : `Basic ${ accessToken } ` ,
59
60
} ,
60
61
...rest ,
Original file line number Diff line number Diff line change @@ -102,10 +102,12 @@ export class ThreeDomainSecureComponent {
102
102
const authData = {
103
103
grant_type : `client_credentials` ,
104
104
} ;
105
- if ( this . sdkConfig . merchantID . length ) {
105
+
106
+ if ( this . sdkConfig . merchantID ?. length ) {
107
+ // $FlowFixMe invalid error on key assignment
106
108
authData . target_subject = this . sdkConfig . merchantID [ 0 ] ;
107
109
}
108
-
110
+ // $FlowFixMe
109
111
const accessToken = await this . restClient . authRequest < Request , string > ( {
110
112
baseURL : `${ this . sdkConfig . paypalApiDomain } ${ AUTH } ` ,
111
113
accessToken : `${ basicAuth } ` ,
You can’t perform that action at this time.
0 commit comments