Overview
Suspending a merchant (e.g. for fraud) currently requires calling update_merchant(active: Some(false)) — but only the merchant itself can call update_merchant (it requires merchant auth). Admins cannot currently suspend a merchant.
Technical Requirements
Overview
Suspending a merchant (e.g. for fraud) currently requires calling
update_merchant(active: Some(false))— but only the merchant itself can callupdate_merchant(it requires merchant auth). Admins cannot currently suspend a merchant.Technical Requirements
suspend_merchant(admin: Address, merchant_id: Address, reason: String).admin == stored_admin.Merchantstruct.create_payment(in PaymentProcessor) checks that merchant is active and not suspended.reinstate_merchantfor admin to lift suspension.