# Payment Gateway App Configuration import Config # Configure the endpoint config :payment_gateway_app, PaymentGatewayAppWeb.Endpoint, url: [host: "localhost"], adapter: Bandit.PhoenixAdapter, render_errors: [ formats: [html: PaymentGatewayAppWeb.ErrorHTML, json: PaymentGatewayAppWeb.ErrorJSON], layout: false ], pubsub_server: PaymentGatewayApp.PubSub, # Must match DaProductAppWeb.Endpoint live_view signing_salt when integrated # via forward "/pgpayments" and websocket "/live" on the main endpoint. live_view: [signing_salt: "Rs4sgrNR"] # Configure esbuild (the version is required) config :esbuild, version: "0.17.11", payment_gateway_app: [ args: ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*), cd: Path.expand("../assets", __DIR__), env: %{"NODE_PATH" => Path.expand("../../../deps", __DIR__)} ] # Configure tailwind config :tailwind, version: "3.4.3", payment_gateway_app: [ args: ~w( --config=tailwind.config.js --input=css/app.css --output=../priv/static/assets/app.css ), cd: Path.expand("../assets", __DIR__) ] # Configures Elixir's Logger config :logger, :console, format: "$time $metadata[$level] $message\n", metadata: [:request_id] # Use Jason for JSON parsing in Phoenix config :phoenix, :json_library, Jason # Payment provider configuration config :payment_gateway_app, api_provider: PaymentGatewayApp.Providers.MockProvider, api_key: System.get_env("PG_API_KEY"), api_secret: System.get_env("PG_API_SECRET"), api_endpoint: System.get_env("PG_API_ENDPOINT") || "https://api.payment-provider.com" # Import environment specific config import_config "#{config_env()}.exs"