Creator Tasks
A project's creator tasks as a connector's creator surface lists and settles them — what a member bought that the creator hands over by hand, listed by state and marked done through the dashboard's own action.
Subscriby\Connector\Core\CreatorTasks. A task opens when a member buys a plan that grants a place no connector gates, a perk the creator hands over themselves, and marking it done issues the grant behind it and tells the member. Both calls take the CreatorRef of the account talking and run as that creator with the dashboard's own rules, and every refusal reaches you as CreatorTasksRefused with a stable reason.
listForProject()
foreach ($this->tasks->listForProject($creator, $project, CreatorTaskState::Open, 20) as $task) {
// $task->memberName, ->resourceTitle, ->instructions, ->dueAt, ->isDone()
}The project's tasks newest first, each a CreatorTaskDetails: the member who bought and their id, the place to grant and its id, the creator's instructions to themselves, the due date when one was set, and when it was marked done. CreatorTaskState::Open is the ones still waiting, Completed the ones done, All both; a member or a place that is gone is named as such rather than left blank.
complete()
$done = $this->tasks->complete($creator, $task->id);Marks the task done through the dashboard's own action: the grant behind it is issued, the member is told their access is ready, and the task comes back with completedAt set. A task already done, or one whose purchase has ended, is refused as invalid with the core's sentence.
Refusals
| Reason | When |
|---|---|
creator_unknown | The ref names no creator. |
project_unknown | The project is not one the creator may manage. |
task_unknown | The task is not one the creator may manage. |
invalid | The task is already done, or the purchase behind it has ended. |
not_permitted | The creator may not settle the project's tasks. |
How is this guide?
Last updated on
Payment Setup
A project's payment methods as a connector's creator surface sets them up — the gateways on offer with the keys each needs, a method configured from its keys or connected through the gateway's own onboarding, switched and removed, checked the way the dashboard checks it.
Alerts
Where a creator's alerts go, as far as a connector may ask or change it — the one switch for the account in front of the connector, and what the core keeps to itself.