Overview
Allow merchants to cancel a pending (not yet confirmed) payment by invoking the contract, which releases the escrow back to the customer if already deposited.
Tasks
Acceptance Criteria
- Merchants can cancel pending payments on-chain
- Any deposited funds are auto-refunded on cancellation
Overview
Allow merchants to cancel a pending (not yet confirmed) payment by invoking the contract, which releases the escrow back to the customer if already deposited.
Tasks
cancel_payment(payment_id)callable by merchant addressPendingstatePaymentCancelledeventAcceptance Criteria