Skip to content

Commit

Permalink
Updates compilation artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers committed Jan 25, 2024
1 parent a495bc9 commit b35a507
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions lib-dist/three-d-secure-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ var ThreeDSecureAction = /*#__PURE__*/function (_React$PureComponent) {
_this._threeDSecure = _this._risk.ThreeDSecure({
actionTokenId: actionTokenId
});
_this._threeDSecure.on('token', function () {
_this._threeDSecure.on('ready', function () {
var _this$props;
return (_this$props = _this.props).onToken.apply(_this$props, arguments);
return (_this$props = _this.props).onReady.apply(_this$props, arguments);
});
_this._threeDSecure.on('error', function () {
_this._threeDSecure.on('token', function () {
var _this$props2;
return (_this$props2 = _this.props).onError.apply(_this$props2, arguments);
return (_this$props2 = _this.props).onToken.apply(_this$props2, arguments);
});
_this._threeDSecure.on('error', function () {
var _this$props3;
return (_this$props3 = _this.props).onError.apply(_this$props3, arguments);
});
return _this;
}
Expand Down Expand Up @@ -74,6 +78,15 @@ exports["default"] = ThreeDSecureAction;
* authentication is required for a transaction.
*/
actionTokenId: _propTypes["default"].string,
/**
* Called when the 3-D Secure flow is ready for interaction
* @type {ThreeDSecureAction~onReady}
*/

/**
* @callback ThreeDSecureAction~onReady
*/
onReady: _propTypes["default"].func,
/**
* Called when the user has completed the 3D Secure flow
* @type {ThreeDSecureAction~onToken}
Expand All @@ -99,6 +112,7 @@ exports["default"] = ThreeDSecureAction;
id: undefined,
className: undefined,
actionTokenId: '',
onReady: function onReady() {},
onToken: function onToken() {},
onError: function onError(e) {
throw e;
Expand Down

0 comments on commit b35a507

Please sign in to comment.