Giter Site home page Giter Site logo

training-iso8583-jpos-2016-02's Introduction

Training ISO8583 dengan JPos

Berbagai alternatif arsitektur aplikasi menggunakan JPOS

JPOS Architecture

Deployment Aplikasi Backend

Contoh data untuk posting transfer ke rekening bank lain :

  {
    "rekening" : {
      "id" : "001"
    },
    "waktuTransaksi" : "2016-11-03T17:39:44",
    "nilai" : -75000.00,
    "keterangan" : "Transfer"
  } 

Contoh data untuk posting topup dari rekening bank lain :

  {
    "rekening" : {
      "id" : "001"
    },
    "waktuTransaksi" : "2016-11-04T17:39:44",
    "nilai" : 50000.00,
    "keterangan" : "Topup"
  } 

Menjalankan Aplikasi Backend

Bila deployment di Heroku di atas tidak bisa dijalankan, kemungkinannya aplikasi sudah saya undeploy dari Heroku. Berikut langkah-langkah untuk menjalankannya di local.

  1. Pastikan MySQL, Maven, dan Java sudah terinstall

  2. Login ke MySQL sebagai root

     mysql -u root -p
     Password: <masukkan password bila ada>
    
  3. Buat user database

     grant all on pelatihan.* to pelatihan@localhost identified by '1234'
    
  4. Buat databasenya

     create database pelatihan;
    
  5. Buka command prompt satu lagi, kemudian masuk ke folder aplikasi

     cd aplikasi-backend
    
  6. Jalankan aplikasi

     mvn clean spring-boot:run
    
  7. Setelah aplikasi jalan, pindah ke console MySQL, kemudian insert sample data yang ada di folder aplikasi-backend/src/test/resources/data

  8. Aplikasi siap dipakai. Silahkan browse ke http://localhost:8080/api/rekening/ dan URL lain seperti dijelaskan di atas.

Untuk mengetes aplikasi backend sebagai client, berikut langkah-langkahnya :

  1. Jalankan dulu aplikasi-simulator

  2. Jalankan aplikasi-backend

  3. Account Inquiry : HTTP POST ke http://localhost:8080/api/rekening/001/inquiry/?tujuan=123

  4. Amati Log

Menjalankan Aplikasi JPos

  1. Masuk ke folder aplikasi-jpos

     cd aplikasi-jpos
    
  2. Jalankan aplikasi

     mvn clean package exec:java -Dexec.mainClass=com.muhardin.endy.belajar.jpos.AplikasiJpos
    
  3. Aplikasi siap menerima koneksi

  4. Telnet ke aplikasi untuk mengirim iso message

     telnet localhost 10000
    
  5. Message yang bisa dikirim bisa dicopy paste dari contoh message. Jangan lupa tekan enter setelah paste, supaya message terkirim.

  6. Amati log untuk mencari error ataupun mendebug isi message

Penggunaan HSM

HSM (Hardware Security Module) adalah perangkat untuk menjalankan fungsi enkripsi data. Biasanya HSM digunakan untuk :

  • Generate PIN dan mencetak PIN Mailer
  • Memproses setup PIN dengan PIN pad
  • Generate key untuk terminal (ATM/EDC)
  • Verifikasi PIN
  • Translate (decrypt dengan key A, encrypt ulang dengan key B) PIN bila terjadi perpindahan zone

Berbagai skenario penggunaan HSM bisa dibaca di sini

training-iso8583-jpos-2016-02's People

Contributors

endymuhardin avatar

Watchers

matt_ avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.