Showcase of how we used Flow v10 during the CodeCon.sk conference.
Flow v10 | CodeCon.sk 2022 | Case study
An example of how we used Flow v10 during CodeCon.sk 2022 for accepting payments via Stripe from an eshop with some clothes and food.
- Stripe Common / Stripe Checkout session
- SuperFaktura Connection / SuperFaktura Invoices
- HTTP Route
- JSON Schema Validator
- Middleware Function / Middleware Exec
- QR Code Generator
As you can see in the image above we used a HTTP Route component with path
/api/stripe/checkout/create to recieve an order data which we passed through JSON Schema validator to make sure the data is in correct format. Then we saved the data using NoSQL database and created a Stripe Checkout session and redirected the user to the url provided by Stripe.
Once the user returned from Stripe payment page we verified the payment was successful and created an Invoice using SuperFaktura Invoices which we then sent to the user via email along with QR codes(only for food) generated by QR Generator component.
Although the flow on the image above might look complicated, it is not. There are quite a few components like Debug log which are not necessary to run the app as well as Triggers and some of NoSQL components which were only used for testing purposes.
This usecase also gave as a few ideas about how we can improve some components as well as which components we could create in order to make it easier to create API services like this.
Other posts from Total.js Platform
- 2022-07-01June report 2022
- 2022-06-02May report 2022
- 2022-05-01April report 2022
- 2022-04-01March report 2022
- 2022-03-22Flow v10 | Publish/Subscribe/Input/Output | Tutorial #3
- 2022-03-18Flow v10 | Create a Component | Tutorial #2
- 2022-03-16Flow v10 | Instalation guide | Tutorial #1
- 2022-03-15Total.js Flow version 10
- 2022-03-01February report 2022
- 2022-02-01January report 2022