feat(pay): add backward-compatibility for `opts` param