❕Events

Transaction success event

When a user has reached the end of a buy/swap/sell process, you can listen for the following postMessage event:

{ type: 'paymentSubmitted', data: { paymentType, paymentId } }

paymentType: bankTransfer|card|crypto

This can be used to trigger a navigation to the desired post-transaction screen or page.

Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Window/message_event

Last updated