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

LINE TECHPULSE 2022 - How We Build Up O2O Platf...

LINE TECHPULSE 2022 - How We Build Up O2O Platform to Our Partner Corporation Service

How We Build Up O2O Platform to
Our Partner Corporation Service by Luther Tsai / LINE Pay @ LINE TECHPULSE 2022 https://techpulse.line.me/

LINE Developers Taiwan

January 21, 2022
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. Luther Tsai / LINE Pay How We Build Up O2O

    Platform to Our Partner Corporation Service 
  2. My Membership Single QR Payment With Membership Integrated Affiliate Program

    With Merchant Group Full Digital Wallet With No Physical Card needed
  3. Starbucks Card Top-up Online with LINE Pay Accumulate Stars with

    LINE Pay Starbucks Card Full Redeem Record of Starbucks Membership Card
  4. LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ User Identification Fuse Mechanism LINE

    AccessToken Java NIO(Non-blocking I/O) High Performance
  5. LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1* Payshop

    Backend Reduce Workload Easy for System Expansion Micro-service based Architecture -*/&'BNJMZ"1* Friends/Groups Info
  6. LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1* OrderHub

    Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* 0SEFS)VC(8 Friends/Groups Info Order Management in General EC spec Fast Integration with LINE Pay
  7. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* 0SEFS)VC(8 Friends/Groups Info Message Queue Integrated for Distribution
  8. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* E-Invoice 0SEFS)VC(8 Friends/Groups Info E-Invoice Upload E-Invoice Info Callback Request E-invoice
  9. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* E-Invoice 0SEFS)VC(8 Friends/Groups Info E-Invoice Upload E-Invoice Info Callback Request E-invoice 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System 7PVDIFS &YUFSOBM"1* Voucher System with Escrow Mechanism
  10. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* E-Invoice 0SEFS)VC(8 Friends/Groups Info E-Invoice Upload E-Invoice Info Callback Request E-invoice 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System 1BZTIPQ &YUFSOBM(BUFXBZ $PPQFSBUJPO 7PVDIFS &YUFSOBM"1* Cooperation Redeem User’s Voucher via External Gateway
  11. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* E-Invoice 0SEFS)VC(8 Friends/Groups Info E-Invoice Upload E-Invoice Info Callback Request E-invoice 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System 1BZTIPQ &YUFSOBM(BUFXBZ $PPQFSBUJPO 7PVDIFS &YUFSOBM"1* Escrow Bank
  12. 2VFVF LIFF 'SPOUFOE 4FSWFS 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1*

    OrderHub Payshop Backend 0SEFS)VC"1* 0SEFS)VC#BUDI -*/&'BNJMZ"1* E-Invoice 0SEFS)VC(8 Friends/Groups Info E-Invoice Upload E-Invoice Info Callback Request E-invoice 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System 1BZTIPQ &YUFSOBM(BUFXBZ $PPQFSBUJPO 7PVDIFS &YUFSOBM"1* Escrow Bank System Structure
  13. API Server -# -# Gateway Server Web Server 8FC 4UBUJD'JMFT

    8FC 4UBUJD'JMFT API Server "QQMJDBUJPO" "QQMJDBUJPO# "QQMJDBUJPO$ (BUFXBZ "QQMJDBUJPO (BUFXBZ "QQMJDBUJPO Dedicate Server with Resource Reserved Hard to Scale Up/Down with Request Dynamically Database System Structure Legacy Infrastructure
  14. 1BZTIPQ &YUFSOBM(BUFXBZ Integrate with LINE Pay Payshop LIFF APP 1BZTIPQ

    &YUFSOBM(BUFXBZ 1BZTIPQ (BUFXBZ 1SPEVDU"1* 6TFS"1* $BSU"1* %FMJWFSZ"1* Payshop Backend LINE AccessToken HMAC-SHA256 LINE AccessToken OrderHub 0SEFS)VC"1* 0SEFS)VC#BUDI 0SEFS)VC(8 $PPQFSBUJPO 4FSWFS LIFF APP $PPQFSBUJPO 4FSWFS 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System Merchant Customer Notify Cooperation Channel Access Token
  15. › 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
  16. Integrate with LINE Pay Payshop WEB WEB LIFF 1BZTIPQ &YUFSOBM(BUFXBZ

    1SPEVDU"ENJO"1* 6TFS"ENJO"1* $BSU"ENJO"1* %FMJWFSZ"ENJO"1* Payshop Backend Merchant Authentication OrderHub 0SEFS)VC"ENJO"1* $PPQFSBUJPO 4FSWFS 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System .FSDIBOU $FOUFS OAuth Redeem Request 1BZTIPQ "ENJO(BUFXBZ HMAC-SHA256 Merchant Authentication HMAC-SHA256
  17. Redeem with LINE Pay Partner App APP 1BSUOFS"QQ (BUFXBZ 1SPEVDU"ENJO"1*

    6TFS"ENJO"1* $BSU"ENJO"1* %FMJWFSZ"ENJO"1* Payshop Backend OrderHub 0SEFS)VC"ENJO"1* 7PVDIFS"1* 7PVDIFS%BFNPO Voucher System Redeem Request 1BZTIPQ "ENJO(BUFXBZ
  18. What we provided via Payshop Voucher Issuing with Escrow Mechanism

    Order System with LINE Pay Integration & E-Invoice Issue Mechanism Product Selling Channel with General EC specification