This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const appConfig = { | |
| port: process.env.PORT || 3000, | |
| hostUrl: process.env.HOST_URL || `http://your-local-machine-ip` | |
| }; | |
| var paytmConfig = { | |
| mid: process.env.PAYTM_MERCH_ID || '<YOUR_MERCHANT_ID_HERE>', | |
| key: process.env.PAYTM_MERCH_KEY || '<YOUR_MERCHANT_KEY_HERE>', | |
| website: process.env.PAYTM_MERCH_WEBSITE || 'WEBSTAGING', | |
| transactionUrl: process.env.PAYTM_TXN_URL || 'https://securegw-stage.paytm.in/theia/processTransaction', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Settings { | |
| static String get apiUrl => "http://<YOUR-NODEJ-APP-IP-ADDRESS>:3000/api/v1/paytm/initiatePayment"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Settings { | |
| static String get apiUrl => "http://<IP-ADDRESS-OF-NODE-API>:3000/api/v1/paytm/initiatePayment"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final orderId = 'TEST_12345678'; | |
| final customerId = '12345678'; | |
| final amount = '1.0'; | |
| final email = '[email protected]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Program | |
| { | |
| public static async Task Main(string[] args) | |
| { | |
| var hostBuilder = new HostBuilder() | |
| .ConfigureAppConfiguration((hostContext, configBuilder) => | |
| { | |
| configBuilder.SetBasePath(Directory.GetCurrentDirectory()); | |
| configBuilder.AddJsonFile("appsettings.json", optional: true); | |
| configBuilder.AddJsonFile( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TimedHostedService : IHostedService, IDisposable | |
| { | |
| private readonly ILogger _logger; | |
| private Timer _timer; | |
| public TimedHostedService(ILogger<TimedHostedService> logger) | |
| { | |
| _logger = logger; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DummyEventHandler : IDummyEventHandler | |
| { | |
| private readonly ILogger _logger; | |
| private readonly IDatabaseService _databaseService; | |
| public DummyEventHandler(ILogger<DummyEventHandler> logger, IDatabaseService databaseService) | |
| { | |
| _logger = logger; | |
| _databaseService = databaseService; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DummyEventHandler : IDummyEventHandler | |
| { | |
| private readonly ILogger _logger; | |
| private readonly IDatabaseService _databaseService; | |
| public DummyEventHandler(ILogger<DummyEventHandler> logger, IDatabaseService databaseService) | |
| { | |
| _logger = logger; | |
| _databaseService = databaseService; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/dotnet:2.2-runtime-stretch-slim AS base | |
| WORKDIR /app | |
| FROM microsoft/dotnet:2.2-sdk-stretch AS build | |
| WORKDIR /src | |
| COPY ["DummyService.App/DummyService.App.csproj", "DummyService.App/"] | |
| RUN dotnet restore "DummyService.App/DummyService.App.csproj" | |
| COPY . . | |
| WORKDIR "/src/DummyService.App" | |
| RUN dotnet build "DummyService.App.csproj" -c Release -o /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/mssql-server-linux | |
| RUN mkdir /work | |
| COPY CreateDb.sql /work | |
| COPY db.sh /work | |
| COPY db.bak /work | |
| WORKDIR /work |
OlderNewer