isPaid
The pay
function checks whether a transaction has been successfully paid by
interacting with the ChainPay smart contract.
Parameters
Name | Type | Description |
---|---|---|
chainpayContract | string | Address of the ChainPay contract (constants.CHAINPAY_CONTRACT_ADDRESS ) |
Return value
This function returns a boolean indicating whether the transaction has been paid.
Return type
boolean