feature: Wallet integration for buying courses
Bad Feature There is this crypto payment feature while purchasing a course, and on clicking on it, it redirects to a notion doc where account details are provided, which is not secure and can lead to wrong transactions if not done correctly.
Course purchase page: 100xdevs Notion doc: notion
Solution
WALLET INTEGRATED PANEL
- User can come and connect their wallet.
- For purchasing a course, they will only need to click on the "PAY VIA CRYPTO" button and a panel will appear that will show the details of their connected wallet.
- Price will be set automatically according to the price of the course and the user will only be needed to confirm their transaction.
This a proposed design of wallet integrated panel from my portfolio.
currently my wallet panel only supports ETH based coins or ETH itself for transactions, but it can also become multichain supported panel. [the portfolio is still in developement]
what are the steps to reproduce? in dev env
The workflow will somewhat look like this:
- The user selects a course and chooses the "Pay via Crypto" option.
- A panel appears prompting the user to connect their crypto wallet.
- After connecting, the user confirms the selected course.
- A backend API call is made to register the purchase intent with wallet address and course ID.
- The system then verifies the payment on the blockchain.
- Once the payment is confirmed, the user is granted access to the course.
Let me know if you were referring to something else by “steps to reproduce"; happy to clarify further if needed!