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

Building Payment Service in Android App by LINE Pay API

Building Payment Service in Android App by LINE Pay API

B29f42636a5f1249b640473d49aa4514?s=128

LINE Developers Thailand

September 13, 2020
Tweet

Transcript

  1. 14:25 - 15:55 Somkiat Khitwongwattana Building Payment Service in Android

    App by LINE Pay API Android Engineer, LINE MAN Wongnai
  2. None
  3. Building Payment Service in Android app by LINE Pay API

  4. Thailand Global, Japan and Taiwan

  5. None
  6. None
  7. Reduce your costs Reasonable fees Increase your sales Convenient to

    use LINE Pay API Why?
  8. 4.5 Million Rabbit LINE Pay Users Thailand in 2018 ~

    10.2% of LINE Users source : vgi.co.th
  9. LINE MAN JD CENTRAL Watsons Konvy myAIS McDonald's Thailand OfficeMate

    and more!
  10. Registration

  11. https://pay.line.me For Merchant

  12. https://pay.line.me/th/developers/main/main For Developer

  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. Integration

  21. LINE Pay API Version 3 Version 2 Version 1 https://pay.line.me/documents/online_v3_en.html

  22. https://bit.ly/integrate-line-pay-api-v3-th LINE Chat Bot + LINE Pay API

  23. LINE Pay API Your Server Your App LINE App Android

    Server
  24. Navigate App to Rabbit LINE Pay Your App LINE App

  25. Navigate App to Rabbit LINE Pay Your App LINE App

  26. Navigate App to Rabbit LINE Pay Your App LINE App

  27. Navigate App to Rabbit LINE Pay Your App LINE App

  28. Transaction Successful Your App LINE App

  29. Transaction Successful Your App LINE App

  30. Transaction Successful Your App LINE App

  31. Transaction Successful Your App LINE App

  32. Transaction Cancelled Your App LINE App

  33. Transaction Cancelled Your App LINE App

  34. Transaction Cancelled Your App LINE App

  35. Transaction Failed Your App LINE App

  36. Transaction Failed Your App LINE App

  37. Transaction Failed Your App LINE App

  38. Your App LINE App Your Server LINE Pay API Start

  39. Your App LINE App Your Server LINE Pay API Create

    Order Start
  40. Your App LINE App Your Server LINE Pay API Create

    Order Request API Start
  41. Request API's request body

  42. Request API's request body

  43. Request API's request body

  44. Your App LINE App Your Server LINE Pay API Create

    Order Request API Start
  45. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Start
  46. Request API's response

  47. Request API's response

  48. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Start
  49. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Start
  50. Check LINE app and LINE Pay supported in Android

  51. Open Google Play or other app store to install LINE

    app
  52. Open LINE Pay API's payment URL

  53. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Start
  54. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Start
  55. Deep Link From Rabbit LINE Pay ltdc://payment/confirm-order?transactionId=...&orderId=... Confirm URL ltdc://payment/cancel-order?transactionId=...&orderId=...

    Cancel URL
  56. Deep Link From Rabbit LINE Pay ltdc://payment/confirm-order?transactionId=...&orderId=... Confirm URL ltdc://payment/cancel-order?transactionId=...&orderId=...

    Cancel URL
  57. Activity with deep link for complete payment

  58. Activity with deep link for complete payment

  59. Activity with deep link for complete payment

  60. Activity with deep link for complete payment

  61. Activity with deep link for cancel payment

  62. Activity with deep link for cancel payment

  63. Activity with deep link for cancel payment

  64. Get query parameters from deep link's URL

  65. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Start
  66. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Start • Transaction ID
  67. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Confirm API Start • Transaction ID
  68. Confirm API's request body

  69. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Confirm API Start • Transaction ID
  70. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Confirm API • Payment Info Response Start • Transaction ID
  71. Confirm API 's response

  72. Confirm API 's response

  73. Confirm API 's response

  74. Confirm API 's response

  75. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Confirm API • Payment Info Response Start • Transaction ID
  76. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID • Payment Token • Payment URL Response • Payment URL Open LINE App (With Payment URL) Complete (By Deep Link) Order Payment Complete • Order ID Confirm API • Payment Info Response Start End Response • Transaction ID
  77. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID Response • Payment URL Open LINE App (With Payment URL) Complete • Transaction ID Order Payment Complete • Order ID Confirm API • Payment Info Response Start End Response • Transaction ID
  78. Your App LINE App Your Server LINE Pay API Create

    Order Request API Response • Transaction ID Response • Payment URL Open LINE App (With Payment URL) Complete • Transaction ID Order Payment Complete • Order ID Confirm API • Payment Info Response Start End Response • Transaction ID
  79. Production API Endpoint https://api-pay.line.me Sandbox https://sandbox-api-pay.line.me

  80. Production API Endpoint https://api-pay.line.me Sandbox https://sandbox-api-pay.line.me

  81. Sandbox https://sandbox-web-pay.line.me/web/payment/... Web linesandbox://pay/payment/... App Production https://web-pay.line.me/web/payment/... Web line://pay/payment/... App

  82. Sandbox https://sandbox-web-pay.line.me/web/payment/... Web linesandbox://pay/payment/... App Production https://web-pay.line.me/web/payment/... Web line://pay/payment/... App

  83. None