The HOA can only tell you this if the governing documents (e.g. HOA rules or bylaws, etc.) specify this, OR if the driveway company is actually owned/controlled by the HOA (not merely approved or recommended by them), since  business owner can legally say cash only. Otherwise, though, without power conferred on them to do this by governing documents or without owning/controlling the contractor, they have no authority to tell you this.