diff --git a/.env.example b/.env.example index 96db9f2..6ce7500 100755 --- a/.env.example +++ b/.env.example @@ -24,3 +24,4 @@ MAIL_FROM_NAME= DOCKER_PORT=80 SENTRY_LARAVEL_DSN= +USING_UUID=false diff --git a/app/Mail/UnpaidOrder.php b/app/Mail/UnpaidOrder.php index 6681b65..c978ed6 100755 --- a/app/Mail/UnpaidOrder.php +++ b/app/Mail/UnpaidOrder.php @@ -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(), ], ); diff --git a/config/orders.php b/config/orders.php new file mode 100644 index 0000000..905bd33 --- /dev/null +++ b/config/orders.php @@ -0,0 +1,5 @@ + env('USING_UUID', false), +];