-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: resend webhooks #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| foreach ($headers as $header) { | ||
|
|
||
| if ($header['name'] == config('filament-better-mails.mails.headers.key')) { | ||
| $mailUuid = $header['value']; | ||
| break; | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| foreach ($headers as $header) { | |
| if ($header['name'] == config('filament-better-mails.mails.headers.key')) { | |
| $mailUuid = $header['value']; | |
| break; | |
| } | |
| } | |
| foreach ($headers as $header) { | |
| if ($this->validateHeaderKey($header['name']) { | |
| $mailUuid = $header['value']; | |
| break; | |
| } | |
| } |
|
|
||
| namespace Basement\BetterMails\Core\Contracts; | ||
|
|
||
| interface BetterDTOContract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| interface BetterDTOContract | |
| interface BetterMailDTOContract |
| $mailUuid = $dto['data']['headers'][0]['value'] ?? $dto['mailUuid']; | ||
|
|
||
| return new self( | ||
| mailUuid: $mailUuid, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use Ramsey\Uuid\Uuid::fromString();
… events instead of updating them
| use Illuminate\Foundation\Events\Dispatchable; | ||
| use Illuminate\Queue\SerializesModels; | ||
|
|
||
| final class ResendEmailComplainedEvent implements COmplainedEventContract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ComplainedEventContract
|
|
||
| foreach ($headers as $header) { | ||
|
|
||
| if ($header[$headerKey] == config('filament-better-mails.mails.headers.key')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ($header[$headerKey] == config('filament-better-mails.mails.headers.key')) { | |
| if ($header[$headerKey] == strtolower(config('filament-better-mails.mails.headers.key'))) { |
would be cool to parse the key from the request and ours to lowercase.
i had a really bad time when i forgot this, so i assume that would be a better thing.
…e to VerifyHeaderWebhookSignature
Still in progress, just publishing to show improvements