Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. malinga91
    3. Posts
    M
    • Profile
    • Following 1
    • Followers 1
    • Topics 5
    • Posts 16
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by malinga91

    • RE: DirectPay Payment geteway to Laravel integrate krpu kenk inwad ? Need help

      @Kasun-Anuradha hari giyada? danui dakke. :)

      posted in Laravel Framework
      M
      malinga91
    • RE: DirectPay Payment geteway to Laravel integrate krpu kenk inwad ? Need help

      Documentation ekak denawa neda eyala service eka offer karanakota?

      posted in Laravel Framework
      M
      malinga91
    • RE: Free JetBrains Licenses

      Thank you..

      I tried to activate this. but it says only valid until September 19, 2023. How to activate for at least 1 year?

      posted in Artificial Intelligence
      M
      malinga91
    • RE: Sampath bank eke payment gateway udauwwak

      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>
      
      posted in Web Development
      M
      malinga91
    • RE: How to properly integrate Payhere to Laravel ? Need Help

      @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.

      posted in Laravel Framework
      M
      malinga91
    • Bitbucket to cPanel deployment

      මගේ repository එකක් තියෙනවා Bitbucket වල. cPanel තියෙන VPS එකක් එක්ක connect කරන්නේ කොහොමද automatically deploy වෙන්න.

      දැනට repository එක SSH වලින් clone කරලා තියෙන්නේ cPanel එකේ. Local changes Bitbucket එකට push කරලා. cPanel SSH වලින් pull කරනවා.

      Bitbucket වලට push කරහම cPanel එකට auto deploy වෙන්න ක්‍රමයක්?

      posted in Back-End Development
      M
      malinga91
    • RE: String vidhiyata values ena variable ekak double walata convert karala lat lang walata assign kranne kohomada ?

      @Nisal-Vimukthi

      Android nam karala nehe man. man nikan google karala beluwe

      https://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android-application

      posted in Android Development
      M
      malinga91
    • RE: සිංහලෙන් VPS Installation ( Ubuntu + NGINX + php-fpm + WordPress) - LEMP

      @root said in සිංහලෙන් VPS Installation ( Ubuntu + NGINX + php-fpm + WordPress) - LEMP:

      @malinga91

      Mokadda server eka Apache da nginx da ??

      @root
      Apache/2.2.34 (Unix)

      posted in System & Network Configurations
      M
      malinga91
    • RE: සිංහලෙන් VPS Installation ( Ubuntu + NGINX + php-fpm + WordPress) - LEMP

      Hoya hoya hitapu ekak. <3

      @chandiama
      Mata issu ekak thiyenawa. man VPS eke subdomain ekak haduwa. eke
      "This site can’t be reached sub.mydomain.org’s server IP address could not be found." kiyala enawa. Kohomada fix kara ganne?

      posted in System & Network Configurations
      M
      malinga91
    • How to send estimation for maintenance of PHP based web site.

      I have to send an estimation for web site maintenance. What should be included there?
      Can someone show me an example?

      posted in Front-End Development
      M
      malinga91
    • RE: Embedable widget එකක්හ දන්නේ කොහොමද?

      I could do this using VueJs.

      Try this > https://itnext.io/vuidget-how-to-create-an-embeddable-vue-js-widget-with-vue-custom-element-674bdcb96b97

      posted in Front-End Development
      M
      malinga91
    • Embedable widget එකක්හ දන්නේ කොහොමද?

      HTML වලින් කරුපු calculator එකක් තියෙනවා. ඒක web pages වල embed කරන්නේ කොහොමද?

      Ex : page.html

      <div id="stamp-duty-calculator" class="grey-theme hidden">
      </div>
      
      <script id="stamp-src" type="text/javascript" data-state="All" src="//calculatorsonline.com.au/external/!main/stamp_duty.min.js"></script>
      

      මං iframe වලින් try කරා. ඒත් height එක dynamic කරන්න බැහැ නේද? load වෙද්දිම 100% height එක එන්න ඕන.

      npm package එකක් උනත් කමක් නෑ ක්‍රමයක් තියෙනම්.

      posted in Front-End Development
      M
      malinga91
    • RE: Python - උදව්වක් (දෙන ලද කාලයට අනුව function එකක් call කරන්න)

      @root man try kara machan. weda. eth tkinter ekka use karaddi window eka open wenne nehe. :(

      posted in Programming
      M
      malinga91
    • RE: Python - උදව්වක් (දෙන ලද කාලයට අනුව function එකක් call කරන්න)

      @root Thanks machan. Man try karala balannam

      posted in Programming
      M
      malinga91
    • Python - උදව්වක් (දෙන ලද කාලයට අනුව function එකක් call කරන්න)

      Python experts.. උදව්වක් ඕන... මං පොඩි program එකක් ලිව්වා. එකේදි වෙන්නේ define කරපු වේලාවල් වලදි function එකක් call කරන එක. දැනට වෙන්නේ තත්පරෙන් තත්පරෙට check කරනවා දීපු time එකයි, දැන් time එකයි සමානද කියලා. මීට වඩා හොද විදියක් තියෙනවද?

      from datetime import datetime
      
      #Times tuple
      timesTuple = ("09:37:00 PM", "09:38:00 PM", "09:39:00 PM", "10:33:00 PM", "10:50:00 PM", "11:30:00 PM", "12:10:00 PM", "12:50:00 PM", "01:30:00 PM")
      
        
      # This function is used to  
      # display time on the label 
      def time(): 
       
          datetime_object = datetime.today()
          now = datetime.strftime(datetime_object,'%l:%M:%S %p')
      
          for x in timesTuple:
              timeOne = datetime.strftime(datetime.strptime(x, "%I:%M:%S %p"),'%l:%M:%S %p')
              if now == timeOne:
                  playSound() 
                  print("Fire bell at : " + x)
                  print("------------")
      
      
      #execute timer
      time()
      
      
      posted in Programming
      M
      malinga91
    • MS Word - type කරනකොට (මි,වි) මැකෙනවා

      MS Word - 2016, WIndows 10
      මි, වි අකුරු ටයිප් කරද්දි View Mode එක Web View එකට මාරුවෙනවා. ටයිප් කරපු අකුර (මි,වි) මැකෙනවා සහ preview mode එකට යනවා. මම පාවිච්චි කරන්නේ HarshSoft s/w එක.

      posted in Windows
      M
      malinga91
    • 1 / 1