Project design and specifications.
- Table of Contents (Click on the triangle to toggle)
Current state of Payment Gateways for Dero
DeroPay
by plrspro
plrspro/dero-payment-gateway
Dero WooCommerce Gateway
by myself
Peppinux/dero-woocommerce-gateway
LIMITATIONS
- Requires a Wallet CLI with active RPC server to be constantly running and syncing on the server side.
- Requires to be run on a PHP backend with a non-negligible amount of dependencies.
- Does not provide an SDK. Therefore, it requires requests to the API to be made via cURL, as shown in the example.
LIMITATIONS
- Requires a Wallet CLI with active RPC server to be constantly running and syncing on the server side.
- Specific integration targeting the WooCommerce platform only.
Team's requirements
- Written in Golang.
- Compatible with all backends.
- No need to be run locally on each merchant's server (like PayPal).
The solution
DERO Merchant (DM, for short), a payment processor as a service, completely written from scratch in Golang, ideally to be hosted on merchant.dero.io.
Source code: https://github.com/Peppinux/dero-merchant (Currently a private repository. Access was given to the accounts of team members)
Public source code on git.dero.io: https://git.dero.io/Peppinux/dero-merchant
ADVANTAGES
- DOES NOT require a Wallet CLI with active RPC server to be constantly running and syncing on each merchant's server.
This is made possible by the use of the derosuite package from inside the application.
- IS NOT limited to any backend technology.
- Provides SDKs for the major backend programming languages.
LIMITATIONS
- The owners of the stores need to provide their Wallet View Key to allow the payment processor to check for incoming payments.
Although such keys would not give access to spending funds, would be stored safely and would not be used in any harmful way, this necessity could be seen, by some, as a lack of complete privacy.
It is important to note that this "limitation" will be easily overcome by the release of a standalone, self-hosted (thus much more lightweight) version of DERO Merchant, that the most cautious users can use.
Structure - overview