Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    How to properly integrate Payhere to Laravel ? Need Help

    Laravel Framework
    laravel payhere payment gateway
    5
    11
    1234
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Coding Labs
      Coding Labs last edited by

      can you help me the integrate payhere to laravel

      1 Reply Last reply Reply Quote 0
      • Grasshopper
        Grasshopper Web Development last edited by

        You can refer their API documentation
        https://support.payhere.lk/api-&-mobile-sdk/payhere-checkout

        Coding Labs 1 Reply Last reply Reply Quote 0
        • Coding Labs
          Coding Labs @Grasshopper last edited by

          @Grasshopper I try this. I have some issues with this.

          root 1 Reply Last reply Reply Quote 0
          • root
            root Linux Help @Coding Labs last edited by

            @Coding-Labs

            what is the issue post here then we can fix

            Coding Labs 1 Reply Last reply Reply Quote 0
            • Coding Labs
              Coding Labs last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • Coding Labs
                Coding Labs @root last edited by

                @root I'm using this reference to integrate payhere to laravel https://support.payhere.lk/api-&-mobile-sdk/payhere-checkout

                then I create a simple form the same as the documentation in payhere. also, create a separate controller for define payment routing and define notify_url, return_url, and cancel_url.

                the notify URL method I added to the given code sample in payhere.

                when I try to pay some amount, the transaction was perfect works. payhere sandbox account record the payment history and I received payment receipt via email.

                but the thing is, after the payment process the notify URL not working properly.

                what is the problem that doesn't work notify URL?

                root M Nano 3 Replies Last reply Reply Quote 0
                • root
                  root Linux Help @Coding Labs last edited by

                  @Coding-Labs

                  what do you want to do with notify_url >??

                  1 Reply Last reply Reply Quote 0
                  • Coding Labs
                    Coding Labs last edited by

                    I want to save my order details (product details and customer details) store database and update payment status as success

                    root 1 Reply Last reply Reply Quote 0
                    • root
                      root Linux Help @Coding Labs last edited by

                      @Coding-Labs

                      use return_url go back to your application.

                      1 Reply Last reply Reply Quote 0
                      • M
                        malinga91 @Coding Labs last edited by

                        @Coding-Labs notify_url url eke request method eka POST da thiyenneh balanna. netnam Route::any('notify_url', function()) daala Log ekak daala balanna request eke monawada enneh kiyala.

                        1 Reply Last reply Reply Quote 0
                        • Nano
                          Nano Node.js @Coding Labs last edited by

                          @Coding-Labs can you specify the error? you need to skip csrf token checking for that return url

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          2
                          Online

                          3.6k
                          Users

                          1.3k
                          Topics

                          5.3k
                          Posts

                          • Privacy
                          • Terms & Conditions
                          • Donate

                          © Copyrights and All right reserved Lanka Developers Community

                          Powered by Axis Technologies (PVT) Ltd

                          Made with in Sri Lanka

                          | |