Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/notification-center/developers/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ We then add a stamp to the parcel to inform the gateways about the fact that thi
$stamps = $stamps->with(new BulkyItemsStamp($bulkyItemVouchers));
```

Depending on the gateway you use, you may need to add the voucher to a token (this is the case for the mailer gateway):

```php
// The mailer gateway needs the vouchers comma-separated
$tokens['attachments'] = implode(', ', $bulkyItemVouchers);
```

Done. A gateway can now use those vouchers to actually ask for the bulky items when sending them. This could
look for example like this:

Expand Down Expand Up @@ -273,4 +280,4 @@ sure this is shown e.g. in the `TokenContext::Email` context, this is your event

This event is dispatched every time a `Parcel` was sent. It can be used to implement e.g. logging, retry logic etc.

[DI_Autoconfigure]: https://symfony.com/doc/current/service_container.html#the-autoconfigure-option
[DI_Autoconfigure]: https://symfony.com/doc/current/service_container.html#the-autoconfigure-option