This article will explain how to integrate PayUMoney into dot net core.

Step 1: Register yourself with Payu.in by visiting

  • Step 1: Register yourself with Payu.in by visiting (https://payu.in/)
  • Step 2: Get your API key and salt from their website.
  • Step 3: Add below code in
    1. ConfigureServices section
    2. services.AddMvc(option
    3. option.EnableEndpointRouting = false);
  • Step 4: and in Configure app.UseMvc();
  • Step 5: Add a controller (in our case, HomeController).
  • Step 6: Create Action (Payment in my case) in Home
  • Step 7: Create another Action(Return) in Home Controller and write below code as shown below:
  • Step 8: On the Checkout button click event write: return LocalRedirect(“/Home/Payment”);

2 Comments

  1. boostaro

    January 21, 2024 at 2:21 am

    Thank you so much!

    Reply
  2. sight care

    January 28, 2024 at 12:01 am

    Thanks for thr great article!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *