Starts in:
2 DAYS
15 HRS
51 MIN
19 SEC
Starts in:
2 D
15 H
51 M
19 S
Open Closed

Payments UI - Blazor Server #2182


User avatar
0
marketbus created

The payments UI seems to be only availalbe for MVC, and partially for Webassembly. Is this correct? I looked at the documentation, and the samples, but their doesn't seem to be anything that targets Blazor Server.

Any recommendations in regars to UI setup? If not, I will just have to build it out.


6 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @marketbus, the payment module is available for MVC (public and admin sides), Blazor Server and Blazor Wasm (admin side) .

    • You should be able to integrate the Payment module to your application by following this documentation. Did you encounter any problems after examining and applying the document?
  • User Avatar
    0
    marketbus created

    After you mentioned that the Admin page was include, I had a look at my main Blazor project and none of the payment modules were added to that project aby ABP Suite (4.4.3). So I manually added them. After that I received an Automapper exception complaining about Extraproperties being null. So I went into ExtensionsConfigurator and added an additional property and that seemed to do the trick and it's working now.

    However, for the Public UI side of things, I guess we should just build that porition out?

  • User Avatar
    0
    marketbus created

    There is currently no documentation / code examples for using the payments module to process a payment from end to end using blazor server. Could you provide an example? PaymentWebOptions for example, is not included in the default nugets for blazor server.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @marketbus

    We haven't tried payment module with a Blazor Server app to get a payment. The flow of payment process is really simple, you can see it here https://docs.abp.io/en/commercial/latest/modules/payment#one-time-payments. When the payment succeeds, the payment module will redirect user to the URL provided CallbackUrl in PaymentWebOptions.

    Then, you can handle the result in your Blazor app. Let me know if you have any confusions.

  • User Avatar
    0
    marketbus created

    In my opinion, stating that the payment process is really simple when you haven't tried it, and your documentation is geared towards MVC, is not really helpful.

    I am not able to get the Payment to succeed so I am not sure how CallbackUrl in PaymentWebOptions would be helpful. The PaymentWebOptions is also geared towards an MVC application.

    It would be very helpful if you could provide some sample code or update your documentation to include Blazor Server.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @marketbus

    You are right, PaymentWebOptions is for MVC projects. Payment module's public UI (for retrieving payment from customer) is only available for MVC (Razor) projects, so you need to host payment module in an MVC project.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06