Events
Triggers when transaction completed
passport.onPayment(async ({type: string, data: any}) => {
console.log('Payment', {type, data})
})
Triggers when an error occurs
transactionUI.onError((errorData) => {
console.log('Error', errorData)
})
Last updated