Skip to content

sirateek/LINEPay-API-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LINEPay API Example

The example of LINEPay API project using LINE Messaging API x Firebase

How to use?

This project was created base on Firebase Cloud Function x LINE Messaging API. It contain 2 cloud function to serve its service which is

  • webhook - Use the endpoint url to this function to hook it with LINE Messaging API
  • confrimOrder - This function will be called after the user take the action with the order from LINE Pay API no matter it success or not

Installation is simple, Just copy this code and deploy it to your firebase project then config the webhook url in LINE Messaging API to hook it with the webhook function

Payload creator

Payload creator is a Javascript module that will return the JSON payload data when it was called (This is not a dependency. But it help to reduce the code in file index.js. Make it easier to read)

Dependency usage

This project use these dependency to complete the operation

Check out this tutorial on medium

Develop with ♡ by Siratee K.

About

The Example of LINEPay API project using LINE Messaging API x Firebase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published