1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

Cara Menggunakan Midtrans di Codeigniter 3

Discussion in 'Pemrograman Web' started by xrvel, May 16, 2020.

  1. xrvel

    xrvel Super Hero

    Joined:
    Oct 21, 2007
    Messages:
    2,854
    Likes Received:
    933
    Location:
    Di sini
    Cara menggunakan Midtrans-PHP di Codeigniter 3.
    Barangkali ada yg sedang cari tahu caranya :D

    1. install composer di komputer kita
    2. Buka command prompt, lalu masuk ke folder "application".
      Code:
      cd application
    3. Ketik
      Code:
      composer require midtrans/midtrans-php
    4. Tunggu sampai midtrans-php didownload oleh composer.
    5. Buka "application/config.php".
    6. Ubah
      Code:
      $config['composer_autoload'] = FALSE;
      jadi
      Code:
      $config['composer_autoload'] = TRUE;
    7. Cara pakai di controller : kalau di contoh menggunakan
      Code:
      Config::$serverKey
      , kita bisa pakai
      Code:
      Midtrans\Config::$serverKey
      .
     
  2. linkcluster

    linkcluster Hero

    Joined:
    Jan 6, 2011
    Messages:
    574
    Likes Received:
    50
    Location:
    under contruction
    begh mastah subes, masi maenan koding aje...
    dan ternyata pengguna Ci jg masi bnyk, kkkkkk
     
  3. linkIT

    linkIT AdSense Pro

    Joined:
    Sep 23, 2013
    Messages:
    253
    Likes Received:
    21
    Location:
    Jakarta Timur
    Xendit untuk Laravel donk gan

    Sent from my RMX1851 using Tapatalk
     
  4. xrvel

    xrvel Super Hero

    Joined:
    Oct 21, 2007
    Messages:
    2,854
    Likes Received:
    933
    Location:
    Di sini
    masih donk.
    kenapa harus ganti2 framework kalau sudah terbiasa dgn yg lama :D

    harusnya mirip2 gan
    Code:
    https://packagist.org/?query=xendit
     

Share This Page