Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LINE TECHPULSE 2020 - LINE Pay New Service My Card

LINE TECHPULSE 2020 - LINE Pay New Service My Card

LINE Pay New Service My Card by Hugo Huang @ LINE TECHPULSE 2020 https://techpulse.line.me/

line_developers_tw2

December 18, 2020
Tweet

More Decks by line_developers_tw2

Other Decks in Programming

Transcript

  1. Agenda › My Card Service Introduction › How to Integrate

    With LINE Pay › How to Build Up My Card Service › Feature works
  2. › New Membership Card Service › Add your real cards

    to My Card › LINE version 10.21.0 › Coming soon LINE Pay My Card
  3. › Add Card › Binding Merchant LINE Pay My Card

    Membership Login Account Password Login
  4. › My Code › Payment Bar/QR code › Auto accumulated

    › Membership Cards › Scan to accumulated › My Card › My Card List › Scan to accumulated How to Use My Membership Card My Card
  5. › Detail Page › Template Apply › Customized Page (LIFF)

    › Internal › External Exclusive Page for Each Binding Card Detail Page 1234 5678 1234 5678
  6. › Enterprise group › Cross Merchants Bundle Membership Cards for

    Campaigns LINE Pay Merchant Merchant & Membership Code
  7. How to Integrate With LINE Pay General Binding Integrate with

    Merchant System Receive membership code and accumulate membership points Integrate with LINE Pay APIs Register merchant’s membership card and integrate with LINE Pay APIs LINE Pay Merchant LINE Pay Merchant
  8. LINE Pay API Integration Pre-work › Register membership card with

    LINE Pay › Logo › Code type › Binding website URL › Detail page content › Channel id (HMAC) › Public key (ECDSA) › Integration guide › Integrate with LINE Pay API › Receive and validate binding information › Send membership by Apply API
  9. Integration Overview LINE Pay API Integration Select Membership Card Merchant’s

    Website Input Account My Card System 1. Login on Merchant’s Website 2. Account Information 3. Verify Successfully 4. Membership Code 5. Register Successfully Frontend Backend Merchant’s Account System
  10. Integrate With LINE Pay Integration Detail Merchant Server Merchant Binding

    Page My Card Server My Card LIFF My Card DB My Card LIFF Binding Reserve Binding Complete Move to Merchant page with 1. nonce 2. callback 3. token (ECDSA signature) Token verification Apply API (HMAC signature) 1. token 2. membership code Apply result Store membership code Apply result Move to callback url with 1. token 2. channelId 3. status Verify and complete binding
  11. Merchant System Integration Payment API Return Membership Code by Transaction

    Id › Offline Payment API › Online Confirm API › Payment Status Check API › Payment Detail API › Pay Pre-approved API
  12. My Card Service Concept Card Listing Select Card Adding in

    My Card Binding / Registrate Start To Use
  13. My Card Service Concept Card Listing Select Card Adding in

    My Card Binding / Registrate Start To Use Merchant
  14. My Card Service Requirements › Platform service › Complex integration

    service › External › Internal › LINE Family › Online and offline combination › Big user base › Strong security
  15. System Architecture Microservice Based Gateway Server Web Server API Server

    .VMUJQMF 4FSWJDFT .VMUJQMF 4FSWJDFT Database
  16. System Architecture Microservice Based Gateway Server Nginx Web Server Nginx

    API Server LB .VMUJQMF 4FSWJDFT .VMUJQMF 4FSWJDFT Database
  17. System Architecture Microservice Based Gateway Server Nginx Web Server Nginx

    API Server LB Merchant LINE Family User .VMUJQMF 4FSWJDFT .VMUJQMF 4FSWJDFT Database
  18. System Architecture Microservice Based Gateway Server Nginx Web Server Nginx

    API Server Cache Redis LB .VMUJQMF 4FSWJDFT .VMUJQMF 4FSWJDFT Database Merchant LINE Family User
  19. System Architecture Microservice Based Gateway Server Nginx Web Server Nginx

    API Server Cache Redis LB .VMUJQMF 4FSWJDFT Admin Server Batch Server .VMUJQMF 4FSWJDFT Database Merchant LINE Family User
  20. Security Mechanism Protect Data Anytime Anywhere › ACL › LB

    › Nginx › API Key › LINE Login Access Control › Hmac Public API › Singnature › ECDSA › Encryption › RSA › AES Data Integration
  21. Security Mechanism Gateway Server Nginx Web Server Nginx API Server

    Cache Redis LB .VMUJQMF 4FSWJDFT .VMUJQMF 4FSWJDFT Hmac API key LINE Login ACL AES Database Merchant LINE Family User
  22. Security Mechanism Apply API (HMAC Signature) Merchant Server Merchant Binding

    Page My Card Server My Card LIFF My Card DB My Card LIFF Binding Reserve Binding Complete Move to Merchant page with 1. nonce 2. callback 3. token (ECDSA signature) Token verification Apply API (HMAC signature) 1. token 2. Membership code Apply result Store membership code Apply result Move to callback url with 1. token 2. channelId 3. status Verify and complete binding
  23. › Protect LINE Pay Servers › HMAC-SHA256 Algorithm › HTTP

    Method › GET › Signature = Base64(HMAC-SHA256(Secret, (Secret + URL + Query Strings + nonce))) › POST › Signature = Base64(HMAC-SHA256(Secret, (Secret + URL + Request Body + nonce))) Hash Based Message Authentication Code HMAC Public API With HMAC
  24. Security Mechanism Request Token Merchant Server Merchant Binding Page My

    Card Server My Card LIFF My Card DB My Card LIFF Binding Reserve Binding Complete Move to Merchant page with 1. nonce 2. callback 3. token (ECDSA signature) Token verification Apply API (Hmac signature) 1. token 2. membership code Apply result Store membership code Apply result Move to callback url with 1. token 2. channelId 3. status Verify and complete binding
  25. Security Mechanism ECDSA Signature Merchant Server Merchant Binding Page My

    Card Server My Card LIFF My Card DB My Card LIFF Binding Reserve Binding Complete Move to Merchant page with 1. nonce 2. callback 3. token (ECDSA signature) Token verification Apply API (Hmac signature) 1. token 2. membership code Apply result Store membership code Apply result Move to callback url with 1. token 2. channelId 3. status Verify and complete binding
  26. › Protect Merchants › SHA256withECDSA Algorithm › HTTP Method ›

    Signature = Base64Url(SHA256withECDSA(Secret, (callback + nonce))) Elliptic Curve Digital Signature Algorithm ECDSA Binding
  27. Integrate With LINE Pay Integration Detail Merchant Server Merchant Binding

    Page My Card Server My Card LIFF My Card DB My Card LIFF Binding Reserve Binding Complete Move to Merchant page with 1. nonce 2. callback 3. token (ECDSA signature) Token verification Apply API (Hmac signature) 1. token 2. membership code Apply result Store membership code Apply result Move to callback url with 1. token 2. channelId 3. status Verify and complete binding
  28. TECHPULSE Card Bind card now to get gift TECHPULSE 2020

    TECHPULSE TECHPULSE TECHPULSE TECHPULSE