Skip to content

Commit

Permalink
update 3ds frame to include default event name
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacvance1027 committed Jul 22, 2022
1 parent 6395daf commit ea64be5
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit ea64be5

Please sign in to comment.