@melio-eng/web-sdk 1.6.0-pr.101.56b43ff → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flows/Flow.js +10 -3
- package/package.json +1 -1
package/dist/flows/Flow.js
CHANGED
|
@@ -143,13 +143,20 @@ export class Flow {
|
|
|
143
143
|
if (data.data?.requiredAction === 'NAVIGATE_TO_NEW_PAYMENT') {
|
|
144
144
|
this.emit('buttonClicked', { type: 'quickPayment' });
|
|
145
145
|
}
|
|
146
|
-
else if (data.data?.requiredAction === 'NAVIGATE_TO_BILLS_PAGE') {
|
|
147
|
-
this.emit('buttonClicked', { type: 'payBills' });
|
|
148
|
-
}
|
|
149
146
|
else {
|
|
150
147
|
logger.debug('PARTNER_ACTION_REQUIRED has no matching action and was not forwarded', { requiredAction: data.data?.requiredAction });
|
|
151
148
|
}
|
|
152
149
|
break;
|
|
150
|
+
case 'BUTTON_CLICKED':
|
|
151
|
+
if (data.data?.type === 'quickPayment' || data.data?.type === 'payBills') {
|
|
152
|
+
this.emit('buttonClicked', data.data);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
logger.debug('BUTTON_CLICKED has no matching type and was not forwarded', {
|
|
156
|
+
type: data.data?.type,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
153
160
|
case 'NAVIGATED_TO_TARGET':
|
|
154
161
|
this.emit('navigated', data);
|
|
155
162
|
break;
|
package/package.json
CHANGED