tolfix / cpg-api Goto Github PK
View Code? Open in Web Editor NEWCentral Payment Gateway
Home Page: http://demo.cpg.tolfix.com/graphql
License: MIT License
Central Payment Gateway
Home Page: http://demo.cpg.tolfix.com/graphql
License: MIT License
Which auth method to pick.
Add event listeners to various events.
One example could be an invoice has been paid, then emit the event. Then someone listing (like plugins) can take it and trigger something, for perhaps handle the product etc.
When creating new invoices, the due_date for invoice becomes 2 months, instead of 1 from invoice_date. This is generated in src/Cron/Orders.cron.ts
Will make it simplier by doing CRUD by using controllers and remove caching and always be in touch with our database.
The current plugin handler could be improved, perhaps could add the direct path of the build, to access files easier that has been exported?
Add stripe to CPG.
Add paypal
Using paypal-sdk to add the system.
Thinking about creating a unique URL when a order is created if payment_method
is paypal
, and when the user goes to the URL it will redirect to paypals payment, and once paid to a success page saying it went well etc.
Invoice wont save when it sent is email, perhaps timeouts from database?
Needs further investigation.
No filters queries added.
Make it possible to add plugins.
Either by adding it manually here in src, or by adding it via NPM.
Make it possible to pick payment methods allowed to be picked.
Make it possible to authenticate with walletconnect.
Want to avoid DRY, thus turning CPG OOP a bit more with classes with standard methods.
Turn most environment variables into the database.
Add password reset
Add right status codes.
Add crypto payments.
Add more logs
Right now the emails are looking a bit bad. Could use more styles with css to make them look better.
Orders/Invoices creates/reminds every 14 days, perhaps should make it dynamic and make admin's choice or make it default at 30 days.
Turn this repository to a monorepo, and rename to cpg
.
Possible to add webhooks when different events happens.
Make reports to admins.
Add subscriptions for paypal/stripe.
Perhaps create a website for documentation.
Right now there is no protection on the mutations nor queries, need to make specific ones protected.
Make better error handlings
When a order is created it should be possible to send email to customer that an order has been created.
Add rate limit to express.
Currently the code is kinda hard coded to Swedish and English on some parts, need to fix a translation for more dynamic.
Use ts-node instead of regular node. To use paths
in tsconfig.json.
Use postgres on version 3 of the API.
Accept payment through steam, like tf2 keys, csgo skins etc.
Query sorting & searching
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.