Base solution for your next web application

Activities of "poolman"

Hi guys!

I know this is an old question, but it does not seem to have ever been addressed. The answer of "There is not server stats info in dashboard anymore" is obviously not a fix to the problem. I am trying to add an expanding/collapsing porlet to my application and I get the same issue as @mmukkara. I downloaded metronic from the downloads tab and copied over a porlet that expands/collapses correctly from the download, but does nothing on my dashboard. Any insight?

Answer

<ins>First few steps:</ins>

Using NuGet Package Manager install Stripe.net on the <ins>Core</ins> project We are using version 11.9.0

Adjust <ins>Web.Mvc</ins> Startup.cs to add StripeConfiguration

using Stripe;
...
public IServiceProvider ConfigureServices(IServiceCollection services)
{
      ...
      //Recaptcha
      services.AddRecaptcha(new RecaptchaOptions
      {
            SiteKey = _appConfiguration["Recaptcha:SiteKey"],
            SecretKey = _appConfiguration["Recaptcha:SecretKey"]
      });

      StripeConfiguration.SetApiKey(_appConfiguration["Payment:Stripe:ClientSecret"]);

      ...
}

Adjust <ins>Web.Mvc</ins> appsettings.json to allow for storage of keys You will add a section for Stripe under the Payment section. It will include a ClientId and a ClientSecret.

"Payment": {
    "PayPal": {
      "Environment": "sandbox",
      "BaseUrl": "https://api.sandbox.paypal.com/v1",
      "ClientId": "",
      "ClientSecret": "",
      "DemoUsername": "",
      "DemoPassword": ""
    },
    "Stripe": {
      "Environment": "sandbox",
      "ClientId": "<REPLACE>",
      "ClientSecret": "<REPLACE>"
    }
  }

Add to <ins>Core</ins> a MultiTenancy/Payments/Stripe/StripeConfiguration.cs

namespace WD2c.MultiTenancy.Payments.Stripe
{
    public class StripeConfiguration : ITransientDependency
    {
        private readonly IConfigurationRoot _appConfiguration;

        public string Environment => _appConfiguration["Payment:Stripe:Environment"];

        public string ClientId => _appConfiguration["Payment:Stripe:ClientId"];

        public string ClientSecret => _appConfiguration["Payment:Stripe:ClientSecret"];

        public StripeConfiguration(IAppConfigurationAccessor configurationAccessor)
        {
            _appConfiguration = configurationAccessor.Configuration;
        }
    }
}

You need to modify your VS2017 installation to include "Mobile development with .NET" which will install Xamarin.

@Mdonogma and @bolenton: Was busy the past 2 days, and just got a chance to look at my stripe integration. I need to make a few tweaks to use version ANZ v5, as it was originally developed on 4.1 and there are a few things that need to be adjusted. I will let you know when it is working so I can figure out a good way to share some code.

@ismcagdas: Stripe is a free product (comparable to PayPal). If you guys are interested, I'd be willing to talk with you about using my code to speed up a Stripe integration in your next sprint.

I agree about PayPal being useless without recurring. I wrote an integration into Stripe, which supports recurring payments, and allows you to choose between PayPal and Stripe in the Host admin. It was pretty simple, and collecting the payment and recurring billing is working, I just need to finish displaying the data back to the customer invoices.

I'd be willing to provide some guidance, or even share some of my code, assuming I can actually get my ANZ v5 to actually work so I can finish the last few pieces.

Can anybody actually log in with 5.0.2? Mine is a fresh download, and all it returns is a JSON string, but does't do the redirect.

{"result":null,"targetUrl":"/Account/ResetPassword?TenantId=1&UserId=2&ResetCode=4344B38F1D&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}

I have the same issue, but unclear if it actually has any impact. I usually just hit F5 to continue, and it seems to load the site with out any issues.

-Chris

<cite>ismcagdas: </cite> @strix20 is right. You can also use AutoMap attribute which provides two way binding.

Thank you both! I knew it was something stupid. :oops:

I think he is trying to say that the version downloaded from the aspnetzero site is still building 4.5.1 as netcore 1.1 instead of netcore2.0.

Showing 1 to 9 of 9 entries