Creating seamless Payment Solutions for E-Bike Charging Services using Logmor Cellular Smart Outlet with API, Zapier, and Stripe involves integrating these platforms to enable smooth and hassle-free payment collection for e-bike charging. Here’s a detailed step-by-step guide:
Platforms/Products Used:
- Logmor Cellular Smart Outlet with API: This is the hardware device that allows you to remotely control and monitor electric outlets, such as those used for e-bike charging. It provides an API (Application Programming Interface) to interact with it programmatically.
- Logmor Device Management Portal: Activate Device the Logmor Smart Outlet and obtain an AuthToken used for API integration.
- Zapier: Zapier is an automation platform that connects various apps and services. It allows you to create workflows (Zaps) that automate tasks between different applications.
- Stripe: Stripe is a popular online payment processing platform that allows you to securely handle payment transactions.
Step 1: Set Up Logmor Cellular Smart Outlet
- Purchase and install the Logmor Cellular Smart Outlet(s) at your e-bike charging stations. Ensure they are activated at https://device.logmor.com and the AuthTokens has been generated. Take note of the AuthToken. Power up the device.
Step 2: Create a Stripe Account
- If you don’t already have one, sign up for a Stripe account at Stripe’s official website.
Step 3: Set Up a Zapier Account
- If you don’t already have one, sign up for a Zapier account at Zapier’s official website.
Step 5: Set Up Stripe Product and Payment Link
- Login into Stripe, go to Product Catalog and Add a Product
- Name the product: E-Bike Charging Services or whatever you desire
- Unit Label: minutes or hours or days
- Price: $1.00 or whatever you desire
- Select One-time Charge
- Click Save Product
- Now go back to the product that has just created, click on the Price under the Pricing section and add Metadata field
- DeviceID: {device ID#}
- Go to Payment Links and Create a Payment Link
- Find the product that you created in Step 1 and change any other options as desired. Also, copy the Payment Link QR code, print it as a sticker and place the sticker in a visible location for customers to scan and make payments.
- This will be it for now in the Stripe portal, now go to Zapier.
Step 5: Create a Zap for Payment Processing
- In Zapier, create a new Zap.
- Name the zap “Logmor Cellular Smart Outlet“
- Set the first trigger to Stripe, choose the event as “Checkout Session Completed“, select your Stripe account and run the Test
- Now select your next trigger as Webhooks by Zapier, choose event as POST and complete the following info:
- URL: https://api.particle.io/v1/devices/{deviceID}/control
- Payload Type: Form
- Data:
- arg=1
- Access_Token= {token from the device.logmor.com portal under the CloudAPI tab}
- Click Test step
- Now select your next trigger as Delay by Zapier, select Event Delay For
- Use the value from the Stripe Checkout Session {line_items quantity}, select the desired Unit, click Test step
- Now select Step 2 tigger and paste it below step 3 tigger or you can recreate it using instructions in step 4 by changing the arg=1 to arg=0
- Test the trigger to ensure it’s working correctly and active it.
By following these steps, you can create a seamless payment solution for e-bike or any other charging services using Logmor Cellular Smart Outlet, Zapier, and Stripe. This integration automates the payment collection process, making it convenient for both you and your customers.