Skip to content

Commit

Permalink
Merge pull request #744 from recurly/adyen_3ds_event_name
Browse files Browse the repository at this point in the history
Adyen 3ds risk strategy frame update
  • Loading branch information
mwlang authored Jul 25, 2022
2 parents 6395daf + 1a232ef commit f6babb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/recurly/risk/three-d-secure/strategy/adyen.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ export default class AdyenStrategy extends ThreeDSecureStrategy {
redirect_url: adyenRedirectParams.url,
...adyenRedirectParams.data
};
this.frame = recurly.Frame({ type: Frame.TYPES.IFRAME, path: '/three_d_secure/start', payload, container })
this.frame = recurly.Frame({
type: Frame.TYPES.IFRAME,
path: '/three_d_secure/start',
payload,
container,
defaultEventName: 'adyen-3ds-challenge'
})
.on('error', cause => threeDSecure.error('3ds-auth-error', { cause }))
.on('done', results => this.emit('done', results));
}
Expand Down
3 changes: 2 additions & 1 deletion test/unit/risk/three-d-secure/strategy/adyen.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ describe('AdyenStrategy', function () {
PaReq: 'test-pa-req',
MD: 'test-md'
},
container: strategy.container
container: strategy.container,
defaultEventName: 'adyen-3ds-challenge'
}));
strategy.remove();
});
Expand Down

0 comments on commit f6babb5

Please sign in to comment.