Base solution for your next web application

Activities of "rvanwoezik"

Question

ASP.NET CORE & ANGULAR V11.1.0

I have added DateOfBirth to the entity user

When saving the date to the database, for instance 2010-3-13, it's saved to sql as 2013-3-12 22:00

And then displayes in the client as 2013-3 -12 instead fo 2013-3-13

I think this is caused by timezoneconverter, how to overrule this?

Thanks in advance

Answer

Thnx!

ASP.NET CORE & Angular (single solution) .NET 6.0 v11.1.0

When register a new tenant with stripe in live mode the payment get stuck on:

https://www.fitpeopleusa.com/account/stripe-payment-result?sessionId=cs_live********** Please Wait Receiving payment result. Please wait

When using stripe in test mode in local debug with Stripe CLI Listener it works

Tenant is created, but is not active.

Webhook Log in Stripe gives an 405 Error for both checkout.session.completed and invoice.paid <!DOCTYPE html><html><head><title>UnsupportedHttpVerb</title></head><body><h1>The resource doesn't support specified Http Verb.</h1><p><ul><li>HttpStatusCode: 405</li><li>ErrorCode: UnsupportedHttpVerb</li><li>RequestId : 181beb7c-601e-0018-39ad-585e8a000000</li><li>TimeStamp : 2022-04-25T14:02:22.0604296Z</li></ul></p></body></html>

Stripe API version: 2020-08-27

No errors in log file

Please help!

Hi, I already checked that and it worked before, looks like transfer from .NET 5.0 to .NET 6.0 made it stop working, but i am not sure. Funny thing when i debug local with Stripe CLI listener it works. Any other AZN users experience the same?

 [HttpPost]
        public async Task<IActionResult> WebHooks()
        {
            string json;
            using (var streamReader = new StreamReader(HttpContext.Request.Body))
            {
                json = await streamReader.ReadToEndAsync();
            }

            Logger.debug("Json = " + json);

To be sure, does Logger.debug show when in production?

Meanwhile i found out it gets timed-out in the getPaymentResult loop in stripe-payment-result.component.ts

getPaymentResult(): void {
        this._stripePaymentService.getPaymentResult(this.paymentId).subscribe(
            (paymentResult) => {
                if (paymentResult.paymentDone) {
                    this._router.navigate(['account/payment-completed']);
                } else {
                    this.controlAgain();
                }
            },
            (err) => {
                this.controlAgain();
            }
        );
    }

Checking the database record in dbo.AppSubscriptionPayments Is says Status = 1 (NotPaid)

But the question is, why doesn't change the payment status to Paid? While it works local in debug with the Stripe CLI Listener

Is it because of Azure handling? Is it i because i have Sign In without specifying Tenant Or is it i have one user per tenant for billing

I have send you an email directly on 5th of May, 2022 to [email protected] Maybe you have missed it.

Can you please check!

Kind Regards Rene van Woezik

 if (!this._sessionService.user) {
            let sessionObservable = new Subject<any>();

            this._refreshTokenService.tryAuthWithRefreshToken()
                .subscribe(
                    (autResult: boolean) => {
                        if (autResult) {
                            sessionObservable.next(true);
                            sessionObservable.complete();
                            location.reload();
                        } else {
                            sessionObservable.next(false);
                            sessionObservable.complete();
                            this._router.navigate(['/landing']);
                        }
                    },
                    (error) => {
                        sessionObservable.next(false);
                        sessionObservable.complete();
                        this._router.navigate(['/landing']);
                    }
                );
            return sessionObservable;
        }

In src folder i have created a landing folder with a landing component

Hope this helps, Kind regards, Rene van Woezik

Hi all,

As from the 1st of April i am switching to another job, my current company is looking for a dutch native full stack developer to maintain and extend an existing ASP.NET CORE & Angular Project. Initialy for one day in the week.

Please let me know when you are interested

Kind regards, Rene van Woezik

Showing 171 to 179 of 179 entries