P

Pegasas Payment Gateway

Point-of-Sale(POS) for E-commerce Applications - Accept Payments via cryptocurrency with Pegasas Payment Gateway

P

Pegasas Payment Gateway

Point-of-Sale(POS) for E-commerce Applications - Accept Payments via cryptocurrency with Pegasas Payment Gateway

The problem Pegasas Payment Gateway solves

Nowadays many business small or big have started accepting crypto as a form of payment on any purchase.

With Pegasas payment gateway, we aim to make it more accessible for a beginner to integrate Crypto payments with a few lines of code and grow their business.

For any online marketplace like E-commerce websites can take different forms of payments to make it much more accessible to their customers. Even with zero knowledge of blockchain or cryptocurrency, one can start accepting payments simply by creating an account on Pegasas web application without any KYC.

Challenges we ran into

  1. First challenge we faced was to create multiple smart contracts under the same Pegasas account as the client may have multiple business to run. We solved this issue by making a smart contract(account factory) whose entire job is to deploy the account smart contract and store the addresses of all the accounts it has deployed.

  2. Since node.js is a server-side run-time environment and we wanted to get access to the web3 instance injected by metamask in the user’s browser, we had to create all the function that required a transaction on the network on the client side.

  3. We wanted users to be able to interact with the application even if they don't have metamask installed in their browser. We achieved this by configuring web3 instance such that it uses the provider of web3 instance already injected by metamask if the user is in the browser and running metamask. If it is not the case, we created our own provider using infura end-point to interact with functions that do not require transacitons on the Blockchain.

Discussion