Open Closed

Configure AbpSaasPaymentOptions in which module configuration area? #3276


User avatar
0
werner@deventerprise.com created
  • ABP Framework version: v5.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Tiered
  • Exception message and stack trace: None
  • Steps to reproduce the issue: None

In the migration guide for 5.3 (https://docs.abp.io/en/commercial/5.3/migration-guides/v5_3) it mentions having to configure AbpSaasPaymentOptions to enable payments. In which module configuration should this go in, Application, Domain, Shared?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can configure it in your startup module. eg Host or Web.

  • User Avatar
    0
    werner@deventerprise.com created

    Thanks,

    Added

        private void ConfigureSaasPaymentOptions(IConfiguration configuration)
        {
            Configure<AbpSaasPaymentOptions>(options =>
            {
                options.IsPaymentSupported = true;
            });
        }
    

    and called it from ConfigureServices

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11