Pripe has its own sdk (https://www.npmjs.com/package/@pripe/gho) and hosted gateway allows developers to integrate GHO payments to their platforms.
In the attached demo video, the integration is shown with whole flow using a sample merchant's demo store. Ill try to host the demo store if possible but its not in the scope of hackathon.
This project is built using custom backend with hosted frontend gateway to accept GHO payment.
- Pripe onboards merchants by providing a unique api key for them to create and access the payments via SDK or via REST API.
- Merchant can create an transaction by providing necessary details such as amount, customer email, callback URL.
- Merchant should redirect their user to hosted payment UI and every new payment creates an evm address to accept GHO payment and gets sync with the database after receiving GHO tokens.
- Payment UI consists of two modes, wallet - User can connect their ethereum wallet and pay their order or scan the QR to pay GHO from other sources.
- Once payment completion is synced with backend, user will be automatically redirected to merchant site. (based on given callback url)