BaseDirectory,ĬontentRootFileProvider = new PhysicalFileProvider( AppDomain. FriendlyName,ĬontentRootPath = AppDomain. GetEnvironmentVariable( "ASPNETCORE_ENVIRONMENT "),ĪpplicationName = AppDomain. get hosting environment var _hostingEnvironment = new HostingEnvironmentĮnvironmentName = Environment. IConfigurationRoot _appConfiguration = configurationBuilder. AddJsonFile( "C: \\Dev \\Omnibasis \\Base \\shared \\ \\config.json ", optional: false, reloadOnChange: true) lets build configuration in memory IConfigurationBuilder configurationBuilder = new ConfigurationBuilder() ĬonfigurationBuilder = configurationBuilder. Please update AccountFile path with a path to your key file provided by Google. Included is a sample config.json file with this demo, note, you will need to obtain your own credentials to run this demo. Learn more about configuration files Learn more about. Configure to create passes For any app we recommend to use settings files, such as appsettings.json If you are interested in source code access, contact Omnibasis supportĭemo 1.See SampleGoogleWalletService for an example Implement IGoogleWalletService for callback processing.Add UseGooleWalletMiddleware into your Startup.Configure().Receive notifications from Google about pass installations and send updates:.Create, validate and update pass classes and objects:.Note: if you did not replace with proper credentials, you will not be able to generate pass tokens. "AccountFile": "C:\Path To Project File\\omnipass.json",Ĭ. You need to update the following content in config.json obtained from Google.ī.You need to replace omnipass.json file with credentials file obtained from Google.Net Framework Demo for the library for all your Google Wallet Pass needs: create passes, updated passes, get JWT links to distribute,Īttention: Google Pay API Account required! Net Framework Drivers for Google Wallet PassĬ# and. Omnibasis Google Wallet Pass Demo to showcase # C# and.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |