DEUNA SDK events

Events allow you to manage and respond to the various actions and states that occur while using the widgets.

Event handling is crucial for the proper functioning of DEUNA SDKs.

Events in Checkout and Payment widgets

iOS, AndroidTriggerMetadata
purchaseRejectedError after a click.{ metadata: { code: string, reason: string } }
paymentProcessingWhen the payment is being processed and the corresponding view is displayed
purchaseErrorWhen an APM payment gets the states denied or canceled
purchaseThe payment was made successfully
apmSuccessWhen a transaction is completed with an APM.
apmClickRedirectWhen the button is clicked to manually redirect to the apm URL.
checkoutFailedWhen an error occurs on trying to open the widget.
changeAddressBy clicking on Change delivery address.
changeCartClick Edit Cart.
paymentMethods3dsInitiatedWhen paying, the 3DS challenge URL is generated.
paymentClickThe user clicks the pay button in the Payment widget.
paymentMethodsCardNumberInitiatedWhen the user clicks on the field to enter the card number.
paymentMethodsEnteredWhen you select a payment method.
paymentMethodsSelectedWhen the user selects a payment method.{ metadata: { method_type: string, processor_name: string } }
paymentMethodsShowMoreWhen the user clicks on more options (payment methods).
linkStartedWhen the payment link is initialized.
paymentMethodsStartedWhen the payment methods are mounted in the UI.
adBlockVerifies if an ad blocker is used.
linkCloseClick on closing the payment link.
linkFailedPayment form loading fails.
paymentMethodsAddCardUser clicks to add a new card.
checkoutStartedPayment widget is displayed.
paymentMethodsCardExpirationDateInitiatedUser presses on the field to enter the card expiration date.
paymentMethodsCardNameInitiatedUser positions himself at the card input to enter the name displayed on his credit card.
paymentMethodsCardSecurityCodeInitiatedUser positions himself at the CVV input.
paymentMethodsCardNumberEnteredUser has filled out the field with the card number.
paymentMethodsCardExpirationDateEnteredUser has entered the card expiration date.
paymentMethodsCardSecurityCodeEnteredUser has entered the CVV of the card.
pointsToWinStartedAccumulated points to show for the purchase.
paymentMethodsShowMyCardsUser clicks View saved cards.
benefitsStartedBenefits are available for purchase and the container to open benefits is displayed.
donationsStartedOption for donations is loaded and the different options are displayed in the UI.

Card vault events

iOS, AndroidTriggerMetadata
vaultProcessingWhen the processing screen to save the card is displayed. It can be presented after clicking save or after returning from the bank's 3DS flow.
vaultSaveClickWhen the user clicks Save to store the card.
checkoutStartedWhen the widget was shown to the user
vaultFailedThe widget cannot be displayed{ errorCode: string, errorMessage: string }
changeAddressWhen you click on the map button to use the selected address.
changeCartEvent triggered when clicking Edit Cart.
vaultSaveErrorWhen an error occurs while saving the card.{ errorCode: string, errorMessage: string }
vaultSaveSuccessWhen the card is saved successfully{ creditCard: { bankName: string, cardId: string, company: string, firstSix: string, lastFour: string, userId: string, storedCard: boolean } }
vaultRedirect3DSWhen the view is shown it generates a re-direction from the trunk to validate the card through 3DS.{ creditCard: { bankName: string, cardId: string, company: string, firstSix: string, lastFour: string, userId: string } }
vaultClickRedirect3DSEvent for Elements Vault that is triggered when a redirection to the 3DS challenge occurs.
paymentMethodsCardIdentityNumberInitiatedWhen you start writing in the identity input of the card form.
paymentMethodsCardIdentityNumberEnteredWhen onBlur occurs on exiting the card form identity input.
paymentMethodsCardNameInitiatedWhen the user positions himself at the card input to enter the name displayed on his credit card
paymentMethodsCardNameEnteredWhen the user has entered the name displayed on their credit card
paymentMethodsCardSecurityCodeInitiatedWhen the user positions himself at the CVV input.
paymentMethodsCardSecurityCodeEnteredWhen the user has entered the CVV of the card
paymentMethodsCardExpirationDateEnteredWhen the user has entered the card expiration date
paymentMethodsCardExpirationDateInitiatedWhen the user presses on the field to enter the card expiration date
paymentMethodsCardNumberEnteredWhen the user has filled out the field with the card number
paymentMethodsCardNumberInitiatedWhen the user clicks on the field to enter the card number