Payment – Composer Kit
Skip to content

Payment

Usage

The Payment component is designed to send payment to the recipient address.

Props

Payment

PropTypeDescription
amountstringThe amount to be paid.
tokenAddressAddressThe address of the token being used for the payment.
recipientAddressAddressThe address of the recipient receiving the payment.
onSuccess(txHash: string) => voidCallback function triggered upon successful payment. Optional.
onError(error: Error) => voidCallback function triggered when an error occurs. Optional.
childrenReact.ReactNodeThe children nodes to render inside the provider.
chainChainThe blockchain chain to use for the payment.

PaymentDialog

PropTypeDescription
openbooleanDetermines whether the dialog is open or not.
onOpenChange(open: boolean) => voidCallback function triggered when the open state changes.
childrenReact.ReactNodeThe children nodes to render inside the dialog. Optional.

PaymentButton

PropTypeDescription
classNamestringCSS class name for styling the button. Optional.
childrenReact.ReactNodeThe children nodes inside the button. Optional.