Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. Tags
    3. php
    Log in to post
    • All categories
    • A

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

      48
      1
      Votes
      48
      Posts
      14399
      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.

    • L

      SMS Gateway
      Web Development • sms gateway php mobitel • • Lucky.Mondist

      8
      1
      Votes
      8
      Posts
      1589
      Views

      steve smith

      HomeImproverz is your trusted source for practical home improvement tips, DIY guides, and expert renovation advice for every space. Whether you're exploring ideas for a pale yellow house with black shutters, searching for the right tree cutter name, or using a floor waxing calculator, you'll find helpful resources in one place. We also provide tools like a mobile home appraisal calculator and easy-to-follow tutorials on how to unhook a gas dryer safely. Visit our website for reliable home maintenance solutions and inspiration to make every project easier.

    • akashmanujaya

      PHP- How to add html table cell values to MYSQL Database
      Back-End Development • php ajax json javascript • • akashmanujaya

      2
      0
      Votes
      2
      Posts
      887
      Views

      Nubelle

      good work

    • kasun viduranga

      windows on-screen keyboard එක javascript වලින් open කරගන්නෙ කොහොමද?
      Web Development • html5 javascript jquery php • • kasun viduranga

      5
      0
      Votes
      5
      Posts
      1180
      Views

      root

      @dev_lak plain JavaScript one man hithanne

    • akashmanujaya

      How to change two input fields with one onchange event
      Back-End Development • php ajax html5 javascript • • akashmanujaya

      2
      0
      Votes
      2
      Posts
      862
      Views

      tnlthanzeel

      you can write all your javascripts in on tag.

      <script>
      function getdoctor(val) {
      $.ajax({
      type: "POST",
      url: "../get_doctor.php",
      data:'specilizationid='+val,
      success: function(data){
      // i assume that your data on ajaxs success has 2 properties in the object
      $("#input1").val(data.item1);
      $("#input2").val(data.item1);
      }
      });
      }
      </script>

    • Harsha Sampath

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

      9
      0
      Votes
      9
      Posts
      2248
      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.

    • hashan

      Laravel Multiple Authentication using guards, not working!
      Back-End Development • laravel php backend • • hashan

      9
      0
      Votes
      9
      Posts
      2106
      Views

      Nubelle

      @Anjana_Gihan thanks bro i did not use laravel gurd

    • Asela bro

      Database එකෙන් ගන්න සිංහල Text එක පෙන්නනෙ නැත්තෙ ඇයි
      Back-End Development • php mysql • • Asela bro

      4
      0
      Votes
      4
      Posts
      1575
      Views

      b6

      @root yess....

      in php

      header('Content-Type: text/html; charset=utf-8');

      In html

      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    • J

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

      20
      0
      Votes
      20
      Posts
      5287
      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
      1957
      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.

    • hashan

      Laravel Data Save Error SQLSTATE[HY000]: General error: 1364
      Back-End Development • laravel php backend • • hashan

      3
      1
      Votes
      3
      Posts
      945
      Views

      dev_lak

      oyage code eke RegisterUser kyna model eke new object ekk hdnwa witarai, ekata values add krnne nha oya ekai error ekk enne, mehema try krnna

      registeruser::create($request->all());
    • hashan

      laravel request all not working
      Back-End Development • laravel php backend • • hashan

      8
      0
      Votes
      8
      Posts
      1840
      Views

      Nubelle

      @hashan ok bro good luck

    • A

      php daily topup
      Web Development • php • • AshenSanuka

      2
      0
      Votes
      2
      Posts
      550
      Views

      Nubelle

      @root FYI

    • kasun viduranga

      PHP zend framework එක ගැන දන්න කෙනෙක් ඉන්නව නම් කියාදෙන්න.
      Web Development • php sql html • • kasun viduranga

      3
      0
      Votes
      3
      Posts
      969
      Views

      root

      @kasun-viduranga

      mona wage deyak da denaganna one

    • F

      What is the different between return ($row) and return $row in php
      Back-End Development • php backend • • fahathmtm

      2
      0
      Votes
      2
      Posts
      734
      Views

      b6

      There is no different, Usually brackets used to grouping the calculation and get final value..

      Instead of,

      $amount = $price - $discount; return $amount;

      You can use,

      return ($price - $discount);

      But in your case, $row is an Array. Array is a single element, So no need brackets..

    • Sandaruwan Kodithuwakku 0

      HTML 5 Black Book , Kogent Learning Solutions Inc ,2011
      Announcements • html css javascript php ebook • • Sandaruwan Kodithuwakku 0

      2
      0
      Votes
      2
      Posts
      938
      Views

      Nubelle

      Hoyala balamu

    • BuddhikaNelum

      Need HELP - Laravel and Vue deploy
      General Discussion • laravel vue php deployment • • BuddhikaNelum

      2
      0
      Votes
      2
      Posts
      906
      Views

      root

      Oyage laravel project eka wenama host karala. Vue SPA eka wenama host karanna,

      https://medium.com/@Web_Bailey/deploy-a-vuejs-app-with-digitalocean-fd6e7af07e40

      Mekata digital ocean eken VPS server ekak thibbama athi, Digital ocean ma one na , Linode, Vultr walinuth VPS ganna puluwan

    • Manoj Abewardhana

      OCR PDF Scanner and store metadata
      Programming • php ocr programming pdf • • Manoj Abewardhana

      3
      0
      Votes
      3
      Posts
      1053
      Views

      root

      yes you can do with php. php has lot of third party pdf library's.

    • AHB AHB

      Cyber security vs software engineer what is the best path?
      Job Portal • web development cybersecurity programming mobile app php • • AHB AHB

      6
      1
      Votes
      6
      Posts
      2300
      Views

      uditha

      It will be difficult to get Cyber security job in any other county than Sri Lanka. Because its tightly connect with your nationality. But in web development you can get a job easily. If your working only in Sri Lanka Cyber security will get much better in coming years.

    • Radika Dilanka

      HTML වලින් Mobile App එකක් හදමු හෝඩියේ සිට
      Mobile Application Development • html5 html java script php mobile app • • Radika Dilanka

      13
      3
      Votes
      13
      Posts
      4431
      Views

      Radika Dilanka

      @Nipun-Bro comment ekata isthuti. kragena yamu.

    • 1
    • 2
    • 3
    • 4
    • 3 / 4