Using Line Massaging API
Setting up to send transfer notifications via Line Massaging API for the Plant3 theme involves the following steps:
1. Sales Page Setting
Section titled “1. Sales Page Setting”Scroll to the Sales Page Setting and click the Payment Form button to enable Line Massaging.
The two main values required from Line are Group ID and Access Token.
2. LINE Developers
Section titled “2. LINE Developers”Go to LINE Developers or visit the URL: https://developers.line.biz/en/
Log in and go to the Console section.
3. Create a new provider
Section titled “3. Create a new provider”Click the Create a new provider button to create a provider.
4. Provider name
Section titled “4. Provider name”Enter the desired Provider name and click the Create button.
5. Create a Messaging API channel
Section titled “5. Create a Messaging API channel”Create a Messaging API channel.
6. Create a LINE Official Account
Section titled “6. Create a LINE Official Account”Create a LINE Official Account.
7. SMS
Section titled “7. SMS”Verify your account via SMS.
8. LINE Business ID
Section titled “8. LINE Business ID”Select Thailand and enter your phone number, then click the Send text message button.
9. Verification code
Section titled “9. Verification code”Enter the code received via phone and click the Verify button.
10. Go back
Section titled “10. Go back”Once verified, click the Go back button.
11. Register
Section titled “11. Register”Fill in the registration information as per the steps.
12. Setting
Section titled “12. Setting”Select the Setting option as shown in the image.
13. Enable Messaging API
Section titled “13. Enable Messaging API”Select Messaging API and click the Enable Messaging API button.
14. Select provider
Section titled “14. Select provider”Select the provider you created and click the Agree button.
15. Enabling Messaging API
Section titled “15. Enabling Messaging API”Check the Account name and Provider name, then click the OK button.
16. Enabled Messaging API
Section titled “16. Enabled Messaging API”The Messaging API system has been successfully enabled.
17. Channels Messaging API
Section titled “17. Channels Messaging API”Select Channels and go to Messaging API as shown in the image.
18. Messaging API setting
Section titled “18. Messaging API setting”Go to Messaging API settings.
19. Access Token
Section titled “19. Access Token”Scroll down to the Channel access token section and click the Issue button.
At this step, you will obtain the Access Token to use as mentioned in step 1.
20. Webhook setting
Section titled “20. Webhook setting”Scroll down to the Webhook setting section and click the Edit button.
21. Use Webhook
Section titled “21. Use Webhook”Enable the feature using the green button as shown in the image, and obtain the Webhook URL.
22. Allow bot to join group chats
Section titled “22. Allow bot to join group chats”Go to Allow bot to join group chats and click the Edit button.
23. Toggle Features
Section titled “23. Toggle Features”Select Allow as shown in the image.
24. Line Group
Section titled “24. Line Group”Enter the Line Group where you want notifications to be sent. If there isn’t one, you can create a new Group and invite the Line Official account you created into the group.
25. Group ID
Section titled “25. Group ID”Once you have invited the Line Official account into the Line Group, go to the Webhook URL from step 21.
At this step, you will obtain the Group ID as shown in the image to use as mentioned in step 1.
Ref: How to get group ID