Skip to content

Commit c48c5c5

Browse files
committed
Manually adjust AcsWebhooks
1 parent 03704a9 commit c48c5c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/typings/acsWebhooks/acsWebhooksHandler.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ export class AcsWebhooksHandler {
4444
return this.getAuthenticationNotificationRequest();
4545
}
4646

47-
if(Object.values(acsWebhooks.RelayedAuthenticationRequest.TypeEnum).includes(type)) {
47+
// manually commented out: RelayedAuthenticationRequest has no TypeEnum
48+
// if(Object.values(acsWebhooks.RelayedAuthenticationRequest.TypeEnum).includes(type)) {
49+
// return this.getRelayedAuthenticationRequest();
50+
// }
51+
if(!type && this.payload["paymentInstrumentId"]){
52+
// ad-hoc fix for the relayed authentication request
53+
// if type is undefined but paymentInstrumentId is present then it is a relayedAuthenticationRequest
4854
return this.getRelayedAuthenticationRequest();
4955
}
5056

0 commit comments

Comments
 (0)