Add the Event Listener to your Integration
To add the Event Listener to your GEFT widget integration, place the following script on the same page as your GEFT widget:html
Reviewing your Event Listener data
You’ll receive the following types of event data from the GEFT widget:- A JavaScript event, which indicates a user event during the payment flow
- Widget state changes, which indicate progress through the guarantee process
Event Examples
Flow Events
APP_INITIATEDGuarantee Events
GUARANTEE_OFFEREDTerminal Events
SUCCESS (Terminating)Implementation Examples
Basic Event Handling
Advanced Event Tracking
Error Handling and Timeouts
Event Flow Examples
Successful Payment Flow
APP_INITIATED- Payment flow initiatedINSTITUTION_SELECTED- User selects their bankSUBMIT_CREDENTIAL- User enters bank credentialsSUBMIT_MFA- User completes multi-factor authentication (if required)ACCOUNT_SELECTED- User selects the account for paymentCOMPONENT_DEPOSIT_CONTINUE- User confirms payment amountGUARANTEE_OFFERED- Flinks approves the guaranteeCOMPONENT_PAD_DOWNLOADED- User signs PAD agreementSUCCESS- Payment completed successfully
Guarantee Declined Flow
APP_INITIATED- Payment flow initiatedINSTITUTION_SELECTED- User selects their bankSUBMIT_CREDENTIAL- User enters bank credentialsACCOUNT_SELECTED- User selects accountCOMPONENT_DEPOSIT_CONTINUE- User confirms amountGUARANTEE_FAILED- Flinks cannot guarantee the paymentCOMPONENT_OTHER_FUNDING_OPTIONS_SELECTED- User chooses alternative methods
User Exit Flow
APP_INITIATED- Payment flow initiatedINSTITUTION_SELECTED- User selects their bankCLOSE- User clicks X to close widget
Testing Event Handling
During development, test event handling with all scenarios in the sandbox environment. Use the test cases provided in the Sandbox Guide to verify proper event handling for both successful and failed flows. Test the following scenarios:- Happy path: Complete successful payment flow
- Guarantee failure: Handle declined guarantees gracefully
- User abandonment: Handle when users close the widget
- Network issues: Handle timeouts and connectivity problems
- PAD decline: Handle when users don’t accept the agreement
Related Documentation
- GEFT Widget: Widget configuration and setup
- Setup Guide: Complete implementation walkthrough
- Sandbox Guide: Testing procedures and test data