# Artisan commands

The package's Artisan commands, with their arguments and options.

## paymongo:webhook:create

Register a webhook endpoint with PayMongo.

```shell
php artisan paymongo:webhook:create [--event [EVENT]] [--] <url>
```

| Argument or option | Description |
| --- | --- |
| `url` | The endpoint URL PayMongo should deliver events to |
| `--event` | Event to subscribe (repeatable) |

## paymongo:webhook:list

List the webhook endpoints registered with PayMongo.

```shell
php artisan paymongo:webhook:list
```

## paymongo:webhook:toggle

Enable or disable a PayMongo webhook endpoint.

```shell
php artisan paymongo:webhook:toggle [--enable] [--disable] [--] <id>
```

| Argument or option | Description |
| --- | --- |
| `id` | The webhook id (hook_...) |
| `--enable` | Enable the webhook |
| `--disable` | Disable the webhook |
