Activities of "christophe.baille"

It works perfectly, thanks a lot.

Just one more question, regarding the issue I got:

In case I change features of the tenant manually (from host admin UI), then when I change the tenant editionId, it does not interact with features anymore. I guess it is because when change manually I write it somewhere else manually? However I do not find on which table, could you tell me?

I do not have access on changing the edition for my tenants, because it is managed by payment provider as they said?

I then tried to disable and enable features, it show/hide the menus successfully for my tenant

I then edit the EditionEndDateUtc on the database but still no work, it will not show/hide my menus as I would like without login.

Another thing I just noticed, in case I check/uncheck a feature for a tenant manually, then the EditionEndDateUtc change will not update feature for this tenant anymore

I tried this but nothing changed. I still need to logout and login to see changes.

I added the class they said on my blazor server project, then call it after app.UseAuthorization();

I finally did implements using Stripe elements only and not using ABP modules

Yes, I use forceLoad: true

NavManager.NavigateTo("/GatewaySelection?paymentRequestId=" + paymentRequest.Id, forceLoad: true);

I usually run my application in incognito browser (Edge) and got this issue. I then tried to open a different browser (Firefox) in incognito to reach the url https://localhost:44307/GatewaySelection?paymentRequestId=22fdbffb-3f68-d619-d008-3a01cd5921be and still got the same issue 404 not found

Thanks for your reply.

I am not sure to understand, you said that I should override SubscriptionService which is on Saas module, at this point nothing is send to Stripe platform right? SubscriptionService seems only have the method CreateSubscriptionAsync which create an object PaymentRequestWithDetailsDto, then add a line on PayPaymentRequests table. Does this method interact to payment module about connecting to Stripe as well at this level? If I edit this service to save a TrialEnd on PayPaymentRequests table (On ExtraProperties for example), will it be enough?

Should I not override some code on payment module too?

From what I did test, this code on Stripe:

var options = new SubscriptionCreateOptions { Customer = "cus_4fdAW5ftNQow1a", Items = items, TrialEnd = DateTimeOffset.FromUnixTimeSeconds(1610403705).UtcDateTime, };

Is done at some point when I call this:

return LocalRedirectPreserveMethod("/Payment/GatewaySelection?paymentRequestId=" + paymentRequest.Id);

Because when calling /Payment/GatewaySelection... , I reach the Stripe view to get the customer information (name, email, card details, etc...). So only after submit this view, I am able to create the customer on Stripe, then create the subscription for this customer and related to the payment request created by SubscriptionService.

Let me know if I misunderstood please, my actual license do not let me access to any source code of modules Saas and payment.

NOTE: I Changed the title of the ticket as now the solution use Blazor Server instead Blazor WebAssembly

As I did not find much help or documentation about webassembly, I decided to replace Blazor Webassembly project by Blazor Server.

By doing this I do not have the issue 2- Let the user change his payment information as I can now use SessionCreateOptions on my razor page, I can then redirect to the billing page using navigationManager.NavigateTo

However, I still get my issue about 1- Let the user create a subscribtion, I did follow this post but still reach 404 not found

https://support.abp.io/QA/Questions/2251/Payments-Module-UI---Blazor-Server

I added both Volo.Payment.Web and Volo.Payment.Stripe.Web into Blazor project, but when I add this on my button action

var paymentRequest = await _subscriptionAppService.CreateSubscriptionAsync(EditionId, CurrentUser.TenantId.Value); NavManager.NavigateTo("/GatewaySelection?paymentRequestId=" + paymentRequest.Id, forceLoad: true);

I keep reaching Error 404 Page Not found.

But when I check the browser "Network" tab, it said the request is OK (200)

On the ticket I did mention previously, I see this:

Blazor Server works hybrid. it includes MVC endpoints too. If you redirect to /GatewaySelection?paymentRequestId=THE_ID_OF_PAYMENTREQUEST after creating a PaymentRequest, an MVC page will handle and a page will be shown for payment provider selection.

But it seems it does not happen on my case... Any help please?

I added forceLoad: true on my class ViewDetails.razor.cs, so now it redirect to the url

https://localhost:44307/GatewaySelection?paymentRequestId=42912c2c-8956-2bd2-e0b4-3a015ec78851

which doesn't exist as I need to add both references Volo.Payment.Web and Volo.Payment.Stripe.Web on my Blazor project as you said. I then got a new error about

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'. C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets

After adding this references, I got an error, after some research on internet, I tried to replace

<PackageReference Include="Volo.Abp.Autofac.WebAssembly" Version="5.0.0" /> by <PackageReference Include="Volo.Abp.Autofac.Web" Version="5.0.0" />

and add

<UseBlazorWebAssembly>true</UseBlazorWebAssembly>

I can then run the application but Blazor application do not show anymore... I keep looking further as I migrate from ABP 4 to 5, I might have other things missing...

I understand that I should not ask more support on here as it is not my ticket, but I will ask, as Marketbus asked, if it is possible to have a sample solution to see on how it is implemented. I am far to be an expert on Blazor so it is pretty hard to implement this feature with only the MVC doc...

Thanks

After a payment request was created, you need to redirect to/Payment/GatewaySelection?paymentRequestId=THE_ID_OF_PAYMENTREQUEST endpoint. If that endpoint doesn't exist in your application make sure your project has Volo.Payment.HttpApi and Volo.Payment.Web dependencies.

--> Could you share the code on how you redirect to /GatewaySelection?paymentRequestId=THE_ID_OF_PAYMENTREQUEST on Blazor please? I made it work on Mvc host app, but I am new to Blazor and do not find out on which way I should do it... I tried httpClient.PostAsJsonAsync and navManager.NavigateTo but no luck so far.

Sorry to interrupt you and thanks in advance for your help :)

Just found why it was working on 4.0.0 and not 4.3.3, I simply forgot to setup the property "Copy to Output Directory" of the file as "Copy always".

About IConfiguration, I do not know, but no need to use it yet...

Showing 61 to 70 of 148 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30