Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. Tags
    3. payment gateway
    Log in to post
    • All categories
    • Supun Dhananjaya Kaduwela

      Sampath bank Payment Gateway Intergration direct php
      Web Development • sampath payment gateway • • Supun Dhananjaya Kaduwela

      2
      0
      Votes
      2
      Posts
      388
      Views

      ciaompe

      Please Check below post
      https://lankadevelopers.lk/topic/334/sampath-bank-eke-payment-gateway-udauwwak/19?_=1720213755559

    • K

      DirectPay Payment geteway to Laravel integrate krpu kenk inwad ? Need help
      Laravel Framework • payment gateway • • Kasun Anuradha

      6
      1
      Votes
      6
      Posts
      940
      Views

      K

      ou brother hri giya Thank you..!

    • rohandhananjaya

      Do anyone works with cardcom payment gateway?
      Web Development • php payment gateway • • rohandhananjaya

      8
      0
      Votes
      8
      Posts
      529
      Views

      rohandhananjaya

      @lkdev Yes! I am working on it. thanks again

    • supun spera 0

      Sampath payment gateway response issue
      Web Development • php payment gateway payment methods laravel • • supun spera 0

      6
      1
      Votes
      6
      Posts
      573
      Views

      Sumedha Adhikari

      Test URL ekada use karanne.

    • Eu Computer

      පේමන්ට් ගේට්වේ සෙටප් කරල දෙන කෙනෙක්
      General Discussion • payment gateway payment methods • • Eu Computer

      10
      0
      Votes
      10
      Posts
      1018
      Views

      Eu Computer

      Thanks root.

      Best regards
      Sara

    • Nubelle

      Payment gateway in sri lanka
      General Discussion • payment gateway • • Nubelle

      9
      1
      Votes
      9
      Posts
      730
      Views

      iamprogrammerlk

      @Nubelle said in Payment gateway in sri lanka:

      @IamProgrammerLK Thanks bro ,

      @root said in Payment gateway in sri lanka:

      @IamProgrammerLK

      Great help

      :+1:

    • Nubelle

      HNB Payment Gateway eka use කරන කවුරු හරි ඉන්නවද
      General Discussion • payment gateway • • Nubelle

      6
      1
      Votes
      6
      Posts
      484
      Views

      Nubelle

      @IamProgrammerLK eka tama brother baluwe , man balanam . thank you very much

    • Anushka Deshan Dharmasena

      Laravel IPG Integration
      Laravel Framework • laravel payment gateway visa • • Anushka Deshan Dharmasena

      16
      1
      Votes
      16
      Posts
      1249
      Views

      Nubelle

      @Kasun-Rathnayake Bro you have to request API doc from them.

    • Coding Labs

      How to properly integrate Payhere to Laravel ? Need Help
      Laravel Framework • laravel payhere payment gateway • • Coding Labs

      11
      0
      Votes
      11
      Posts
      1234
      Views

      Nano

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

    • Gayan Priyankara

      BOC payment gateway to Laravel ?
      Laravel Framework • laravel php payment gateway • • Gayan Priyankara

      2
      0
      Votes
      2
      Posts
      364
      Views

      root

      documentation ekak thiyenawa nam danna methana balamu develop karanna simple package ekak

    • dev_lak

      Payhere with FLUTTER
      Mobile Application Development • flutter payhere payment gateway • • dev_lak

      3
      1
      Votes
      3
      Posts
      589
      Views

      dev_lak

      @root thanks bro

    • A

      Laravel payhere integration
      Back-End Development • laravel php payment gateway security html • • alwismt

      48
      1
      Votes
      48
      Posts
      6128
      Views

      M

      mata therenne na ai oya me form vairables server side eken redirect karanne kiyala methana credit card wisthara monawath na . nikam amount ekak witharai thiyenne payhere egollonge server (SITE) ekedi thama credit card info type karanna kiyanne. oyata me form auto submit karanna puluwan oyage route ekak athule view eke hadala javascript walin

      <form id="myForm" action="Page_C.php" method="post">
      <?php
      foreach ($_POST as $a => $b) {
      echo '<input type="hidden" name="'.htmlentities($a).'" value="'.htmlentities($b).'">';
      }
      ?>
      </form>
      <script type="text/javascript">
      document.getElementById('myForm').submit();
      </script>

      @root
      me kiyanne checkout karaddi (<form method="post" action="https://sandbox.payhere.lk/pay/checkout"> form eka submit karaddi)
      eke form entities wenama pahala thawa route ekakin java script walin submit karala e form data wenama database update karaganna kiyala neda.

    • Harsha Sampath

      HNB payment gateway
      Back-End Development • payment gateway php laravel • • Harsha Sampath

      9
      0
      Votes
      9
      Posts
      1306
      Views

      root

      @Harsha-Sampath

      me waqradi doc ekak euwe oya. mage yaluwek gen ahuwa mama. oyage account eka verify karama oyata ewanawa API doc ekak.

    • J

      Sampath bank eke payment gateway udauwwak
      Web Development • laravel payment gateway php • • jtta6

      20
      0
      Votes
      20
      Posts
      3033
      Views

      M

      Payhere api url ekata POST request ekak yawanna tiyenne. HTML form ekak hadala eka submit karanna thiyenne. Form eke action ekata danna ona Payhere API URL eka. Oyage domain eka payhere eke whitelist karanna ona kalin. ethakota oyage domain eke idan POST request yawanna puluwan. ekata aniwayen ona fields tiyenawa. (email, name, address, amount wage ewa). me tiyenne man karapu widiya.

      .env file

      PAYHERE_MERCHENT_ID=24333554141 PAYHERE_SECRET=8xxxxxxxxxxxxxxxxxxxxxxxxxJ7J PAYHERE_API_URL=https://sandbox.payhere.lk/pay/checkout

      config/payhere.php

      return [ 'api_url' => env('PAYHERE_API_URL', 'https://sandbox.payhere.lk/pay/checkout'), 'merchant_id' => env('PAYHERE_MERCHENT_ID', 'no_merchent'), 'secret' => env('PAYHERE_SECRET', 'no_secrete'), 'return_url' => env('PAYHERE_RETURN_URL', config('app.url') . '/checkout/return'), 'notify_url' => env('PAYHERE_NOTIFY_URL', config('app.url') . '/checkout/notify'), 'cancel_url' => env('PAYHERE_CANCEL_URL', config('app.url') . '/checkout/cancel'), ];

      Submit Order details (amount, items, name, etc)

      <form class="width:100%" method="post" action="{{ config('payhere.api_url')}}"> @csrf <input type="hidden" name="merchant_id" value="{{ config('payhere.merchant_id') }}"> <input type="hidden" name="return_url" value="{{ config('payhere.return_url') }}"> <input type="hidden" name="cancel_url" value="{{ config('payhere.cancel_url') }}"> <input type="hidden" name="notify_url" value="{{ config('payhere.notify_url') }}"> <input type="hidden" name="order_id" value="{{ $order->reference }}"> <input type="hidden" name="items" value="My Packages"> <input type="hidden" name="currency" value="{{ $order->currency }}"> <input type="hidden" name="amount" value="{{ $order->amount }}"> <input type="hidden" name="first_name" value="{{ $order->first_name }}"> <input type="hidden" name="last_name" value="{{ $order->last_name }}"> <input type="hidden" name="email" value="{{ $order->email }}"> <input type="hidden" name="phone" value="{{ $order->phone }}"> <input type="hidden" name="address" value="{{ $order->address }}"> <input type="hidden" name="city" value="{{ $order->city }}"> <input type="hidden" name="country" value="{{ $order->country }}"> <input type="hidden" name="hash" value="{{ $order->hash }}"> <input type="submit" class="" value="Pay Now"> </form>
    • Theesan

      Help me on Payment Gateway in PHP
      Web Development • php payment gateway • • Theesan

      7
      0
      Votes
      7
      Posts
      1072
      Views

      dev_lak

      @Theesan

      <?php // A sample PHP Script to POST data using cURL // Data in JSON format $data = array( 'username' => 'tecadmin', 'password' => '012345678' ); $payload = json_encode($data); // Prepare new cURL resource $ch = curl_init('https://api.example.com/api/1.0/user/login'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); // Set HTTP Header for POST request curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($payload)) ); // Submit the POST request $result = curl_exec($ch); // Close cURL session handle curl_close($ch); ?>

      this is a curl example.

    • 1 / 1