SanFi – a revolutionary payment solution that allows users to pay with Solana directly on any transaction platform. With SanFi, users can pay Solana from their crypto account, while the merchant receives fiat currency instantly into their bank account.
-
Seamless Crypto-to-Fiat Payments: Enable users to make direct cryptocurrency payments to any e-commerce website, even if the merchant doesn't accept crypto.
-
One-Click Payment: With a single click, users can complete their purchases on almost any online store.
-
Currency Conversion: Converts cryptocurrency into the merchant's preferred fiat currency.
-
Fast and Secure: Transactions are completed within seconds, leveraging blockchain technology for speed and security, making crypto payments as easy as traditional methods.
The project consists of the following main components:
- Frontend - A complete e-commerce website with integrated payment functionality.
- Backend - A Django-based API to handle payment processing.
- Wallet Integration - Uses Phantom for managing cryptocurrency payments.
The backend includes:
process_payment
API Endpoint: Handles payment processing using the PayPal SDK, creating and executing payouts to merchants.
- Python: Version 3.8 or higher
- React: Ensure you have the necessary tools to run a React application
- PayPal SDK credentials
- Solana wallet and network configuration
-
Clone the Repository
git clone https://github.com/SandeepMahto17/SanFi.git cd SanFi
-
Install Requirements
cd server pip install -r requirements.txt
-
Run the Development Server
python manage.py runserver
- Navigate to the Frontend Directory
cd ./DemoEcommerce
- Install Dependencies
npm install
- Run the development server:
npm run dev