<?php namespace App;
use Illuminate\Http\Request;


/**
 * Created by PhpStorm.
 * User: sunil khorwal
 * Date: 6/6/16
 * Time: 1:52 PM
 */
class BNPL
{

    public static function getMerchants(): array
    {
        return !_env('APP_CONNECTION') ? [3] : [6746,6754];
    }

   static public function is($id): bool
   {
       return static::isWhitelisted($id);
   }

   static private function isWhitelisted($id): bool
   {
       return in_array($id, self::getMerchants());
   }
}
