Ends in:
7 DAYS
12 HRS
3 MIN
57 SEC
Ends in:
7 D
12 H
3 M
57 S
Open Closed

PayU payment gateway #7674


User avatar
0
devsumati created
  • ABP Framework version: v8.2.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I want to configure and integrate PayU payment gateway in my solution. don't want to give option for gateway selection i only have PayU as gateway. I have installed the module in all the projects. How can i configure it in my web.public project pages.


40 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    If you only have one payment method, the GatewaySelection page automatically redirects you to PaymentUrl.

    https://abp.io/docs/commercial/8.1/modules/payment

  • User Avatar
    0
    devsumati created

    hi

    If you only have one payment method, the GatewaySelection page automatically redirects you to PaymentUrl.

    https://abp.io/docs/commercial/8.1/modules/payment

    Hi maliming, From the above documentation link i am unable to come to final output.

    Can you please provide me clear steps for the configuration after module installation. Like how will it be configured in the page, what are the different settings we need to configure. The most important where and how will we add PayU credentials. If you can provide a sample project for MVC tiered web application with working redirection to payment gateway and return URL configuration will be great. Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The most important where and how will we add PayU credentials for MVC tiered web application

    Add typeof(AbpPaymentPayuDomainModule) Volo.Payment.Payu.Domain to your api.host project Add typeof(AbpPaymentPayuWebModule) Volo.Payment.Payu.Web to your web project

    https://abp.io/packages?moduleName=Volo.Payment

    Add JSON below to your appsettings.json of api.host and web projects.

    
    "Payment": {
        "Payu": {
          "Merchant": "OPU_TEST",
          "Signature": "SECRET_KEY",
          "LanguageCode": "en",
          "CurrencyCode": "USD",
          "VatRate": "0",
          "PriceType": "GROSS",
          "Shipping": "0",
          "Installment": "1",
          "TestOrder": "1",
          "Debug": "1",
          "Recommended": "true",
          "ExtraInfos": [
            "PAYU accepts Visa and MasterCard."
          ],
          "PrePaymentCheckoutButtonStyle": "vst-btn-continuetocheckout"
        }
      }
    

    You can give it a try and feedback if you have any problem.

    Thanks.

  • User Avatar
    0
    devsumati created

    Thanks for answer. but it is not complete information what i have asked. Please provide me a sample project or complete implementation guide. thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We don't have such a sample. You can try the steps and code above.

  • User Avatar
    0
    devsumati created

    hi

    We don't have such a sample. You can try the steps and code above.

    Then please provide complete implementation guide for payment gateway integration.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    This may take a while. Please create a template project. Then upload it to a Github private repository. Then invite https://github.com/maliming to join.

    I will add the code above.

  • User Avatar
    0
    devsumati created

    Hi maliming, I have created a application and sent you invite. https://github.com/adityanbajpai/AbpPayment Please add all the required code needed for payment gatway. please also add one button in public.web. On the click of this but payment gatway should be called.

    After adding please let me know so that i can try that on my application. thankyou

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Ok, I'll check it out soon, but it may take a while. Thanks

  • User Avatar
    0
    devsumati created

    Hi Maliming, Is there any update.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi I will push my commits before next Tuesday.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://github.com/adityanbajpai/AbpPayment/commits/master/

  • User Avatar
    0
    devsumati created

    https://github.com/adityanbajpai/AbpPayment/commits/master/

    I tried to run db migrator with your changes in Payment demo project i am getting following error.

    [12:12:55 INF] Creating initial migration... ABP CLI 8.2.0 DbMigrator is not found! System.Exception: DbMigrator is not found! at Volo.Abp.Cli.Commands.CreateMigrationAndRunMigratorCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\CreateMigrationAndRunMigratorCommand.cs:line 44 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 Unhandled exception. System.Exception: DbMigrator is not found! at Volo.Abp.Cli.Commands.CreateMigrationAndRunMigratorCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\CreateMigrationAndRunMigratorCommand.cs:line 44 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 at Volo.Abp.Cli.Program.Main(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli\Volo\Abp\Cli\Program.cs:line 43 at Volo.Abp.Cli.Program.(String[] args)

    C:\Users\LENOVO\Desktop\AbpPayment\AbpPayment\src\PaymentDemo.DbMigrator\bin\Debug\net8.0\PaymentDemo.DbMigrator.exe (process 16976) exited with code -532462766.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have tested it, and there is no problem.

    > AbpPayment/src/PaymentDemo.DbMigrator> dotnet run
    [14:55:29 INF] Started database migrations...
    [14:55:29 INF] Migrating schema for host database...
    [14:55:43 INF] Executing host database seed...
    [14:55:46 INF] Successfully completed host database migrations.
    [14:55:46 INF] Successfully completed all database migrations.
    [14:55:46 INF] You can safely end this process...
    

    The core change commits are:

    https://github.com/adityanbajpai/AbpPayment/commit/627069926ec2a3c8787ac0069808b2cefb5b4172 https://github.com/adityanbajpai/AbpPayment/commit/f8a3315c1b5f289f8f34bcbc3af0e160e64aed96

  • User Avatar
    0
    devsumati created

    hi

    I have tested it, and there is no problem.

    I want to use it in public website will you please help me to configure it in **public web **project instead of web project. Configuration and implementation will be same or different in web.public project?

    I have client id as "xxxxxxxxxxxxxxxxxx" and client secret "xxxxxxxxxxxxxxxxxxxx" where it will be used

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Change Merchant and Signature

    "Payment": {
        "Payu": {
          "Merchant": "TEST",
          "Signature": "SECRET_KEY",
    

    btw, We implemented the LiveUpdate(LU) version API of payU.

    https://secure.payu.ro/docs/old/lu/

    Can you test it in web project, then I will update the web.public.

  • User Avatar
    0
    devsumati created

    Hi I wanted to implement the latest one the above mentioned one was last updated in 2016. and I think their are some restriction based on account creation date.so could you please help me to integrate the latest one.

    I tried with your implementation firstly i was getting invalid account then i am getting access not permitted.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We haven't implemented the latest PayU yet.

  • User Avatar
    0
    devsumati created

    hi

    We haven't implemented the latest PayU yet.

    So how can i revert it back i can remove code implementation manually but what about the migration. i have some changes after adding migration

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can add/remove the ef core migrations.

    https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#add-a-migration https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#remove-a-migration

  • User Avatar
    0
    devsumati created

    Hi i just created a custom controller and app service but facing this error in runtime. How can i fix this?

    DependencyResolutionException: None of the constructors found on type 'abc.Controllers.PayU.PaymentController' can be invoked with the available services and parameters:
    Cannot resolve parameter 'abc.PayU.IPayUPaymentAppService payUPaymentAppService' of constructor 'Void .ctor(abc.PayU.IPayUPaymentAppService)'.
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you push your code to https://github.com/adityanbajpai/AbpPayment ?

  • User Avatar
    0
    devsumati created

    Acutally it was on main project .Above issue is resolved now. It was due to some naming issue.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great.

  • User Avatar
    0
    devsumati created

    Hi i am trying to get PayU response on a success or fail page using PayU success/fail URL but after redirection a am facing this issue in all the browser. i have investigated this issue but was not able to find any solution

    Also is there any way i can call the controller directly with the response from PayU using Success url

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