Skip to content

Commit

Permalink
Merge pull request #5 from heseya/bugfix/MPT-2008
Browse files Browse the repository at this point in the history
Added option to send mails with uuid
  • Loading branch information
daVitekPL authored Nov 19, 2024
2 parents 555e2fa + cb0ee57 commit 7852307
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ MAIL_FROM_NAME=
DOCKER_PORT=80

SENTRY_LARAVEL_DSN=
USING_UUID=false
2 changes: 1 addition & 1 deletion app/Mail/UnpaidOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function content(): Content
'order' => $this->order,
'url' => Str::of($this->api->payment_url)
->finish('/')
->append($this->order['code'])
->append(config('orders.using_uuid') ? $this->order['id'] : $this->order['code'])
->toString(),
],
);
Expand Down
7 changes: 7 additions & 0 deletions config/orders.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

return [
'using_uuid' => env('USING_UUID', false),
];

0 comments on commit 7852307

Please sign in to comment.