<?php

namespace App\Services\Pagarme\Concerns;

trait MocksPagarmeRequests
{
    protected function shouldMockPagarmeRequest(): bool
    {
        return app()->environment('local', 'development');
    }

    protected function mockPagarmeId(string $prefix, string|int $value): string
    {
        return $prefix.'_local_'.abs(crc32((string) $value));
    }
}
