Base solution for your next web application

Activities of "denis.karovic"

Question

Hello I tried to upgrade licence from regular to enterpice. I proceeded all the way and paid for the invoice 1400 dollars. I have the invoice and I can send it to you. But after payment and after returning to your panel from payment page I received 500 error and my licence remained regular. Can you please upgrade my licence manually once I deliver you the invoice as evidence that I paid for it.

Can you please help me asap, cause I need the licence now? Thanks in advance.

Hello ASP.NET Zero,

I am trying to make Stripe payment proccess work. So far, I've created Stripe developer account, installed Stripe CLI, created Webhook to my local machine. Subscriptions purchased from Angular side are shown on stripe dashboard. But payment proccess cannot be finished, because in StripePaymentAppService.GetPaymentResult() this condition is never met payment.Status == SubscriptionPaymentStatus.Completed, no matter how many times action is called from Angular side.

I think the problem is that stripe cli listen and forward command is not configured correctly, so StripeControllerBase.WebHooks() method is never called. I tried running this command with various ports, but i cannot make it work : stripe listen --forward-to https://localhost:XXXXXX/Stripe/WebHooks

**This is the output of stripe cli after making purchase from angular side **

	2020-03-13 14:08:39   --> payment_intent.created [evt_1GMDFiARA5glizJOChWcBlF6]
	2020-03-13 14:08:40            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:18   --> payment_intent.succeeded [evt_1GMDGLARA5glizJOWvG9Qyvo]
	2020-03-13 14:09:19            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:20   --> checkout.session.completed [evt_1GMDGLARA5glizJOKbCq8Cxy]
	2020-03-13 14:09:20   --> charge.succeeded [evt_1GMDGLARA5glizJOtdfj9rra]
	2020-03-13 14:09:21   --> customer.created [evt_1GMDGLARA5glizJOKjNr21oK]
	2020-03-13 14:09:21   --> payment_method.attached [evt_1GMDGLARA5glizJOiWYJjJ9x]
	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

	2020-03-13 14:09:22            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.
	

This is output of stripe cli after running stripe trigger payment_intent.created

    2020-03-13 14:11:19   --> payment_intent.succeeded [evt_1GMDIJARA5glizJO60AfGW7C]
    2020-03-13 14:11:19   --> charge.succeeded [evt_1GMDIJARA5glizJOGc2Wt9bv]
    2020-03-13 14:11:19   --> payment_intent.created [evt_1GMDIJARA5glizJOMhZux29M]
    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

    2020-03-13 14:11:21            [ERROR] Failed to POST: Post https://localhost:57743/Stripe/WebHooks: dial tcp [::1]:57743: connectex: No connection could be made because the target machine actively refused it.

launchSetting.json from Web.Host:

    {
      "iisSettings": {
        "windowsAuthentication": false,
        "anonymousAuthentication": true,
        "iisExpress": {
          "applicationUrl": "http://localhost:22742/",
          "sslPort": 0
        }
      },
      "profiles": {
        "IIS Express": {
          "commandName": "IISExpress",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        },
        "EkhartYoga.Web.Host": {
          "commandName": "Project",
          "launchUrl": "http://localhost:22742",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        }
      }
    }

launchSetting.json from Web.Core:

    {
      "iisSettings": {
        "windowsAuthentication": false,
        "anonymousAuthentication": true,
        "iisExpress": {
          "applicationUrl": "http://localhost:57741/",
          "sslPort": 0
        }
      },
      "profiles": {
        "IIS Express": {
          "commandName": "IISExpress",
          "launchBrowser": true,
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        },
        "EkhartYoga.Web.Core": {
          "commandName": "Project",
          "launchBrowser": true,
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          },
          "applicationUrl": "http://localhost:57743/"
        }
      }
    }

I find out what was the problem, out project is set up to use http no https, so stripe cli command should be called like this: stripe listen --forward-to http://localhost:22742/Stripe/WebHooks

Hello,

Do you have any additional documentation regarding payment process besides one that is already publicly available (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Subscription)?

Hello,

There is an error with this component. If getting payment result is not succesfull after the first attempt and the method controlAgain() needs to be called, there is en error with loosing scope.

Wrong implementation:

  controlAgain() {
        if (this.maxControlCount === 0) {
          return;
        }

        setTimeout(this.getPaymentResult, this.controlTimeout);                         // this makes it looses scope
        this.controlTimeout *= 2;
        this.maxControlCount--;
  }
  

Appropriate Implementation:

controlAgain() {
        if (this.maxControlCount === 0) {
          return;
        }

        setTimeout( () => {
            this.getPaymentResult();
        }, this.controlTimeout);                                                                    // this way scope is perserved
        this.controlTimeout *= 2;
        this.maxControlCount--;
  }

Hi,

I have ASP.NET Zero version v8.1.0. If I want to upgrade it to the latest (v8.4.0) would it be sufficient to only update nuget packages for ABP (from v.5.1.0 to v.5.4.0), or manual steps for Zero would be needed?

Hi,

I have several questions regarding Events. I have read documentation regarding it on https://aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events. However, I have several questions:

  1. Are events stored somewhere (database, redis…)?

  2. Can we choose where events will be stored?

  3. Is handling them triggered based or loop/timer based? (I believe it's a pub/sub trigger based implementation, but I just need to check with you one more time)

  4. Any supprot for Integration Events?

Ok, thanks.

Ok, thanks.

Hello,

Is there a possibility of creating one-to-one relationship between two tables using Power Tools?

If not, what would be the most apropriate solution?

Showing 1 to 10 of 16 entries