Skip to content

End to end implementation

Filip Lauc edited this page Apr 23, 2021 · 3 revisions

This library is intended for implementng a front-end solution for processing payments with crypto currencies. For a complete integration you will need to add back-end infrastructure. There are a number of different approaches you can take depending on what your application requires.

Front-End only implementation

It's quite possible that a front-end only implementation can be sufficient. For example a page for accepting donations or a shop that delivers physical products hours after an order happens, could make use of an implementation like this one. This is by far the easiest part of the flow to integrate and wouldn't require anything additional on top of crypto-checkout. The simplest approach is explained here.

Partial End-to-End

The benefit of this approach is less technical debt while still providing a way to confirm and track payments. Instead of tracking transactions in your own system you can subscribe to a public bigquery database (this article explains it in a great way). Alternatively there are a number of free and paid services you can utilize.

Note: It depends on the service you use but generally this can't be a full end-to-end solution because these datasets lag behind and therefore can't notify the client in real-time.

Full End-to-End

We consider a full end-to-end solution to mean tracking transactions in real time, confirming payments and pushing it to the front-end using waitForConfirmation to display the results.

[TODO]

Clone this wiki locally