Skip to content

SandeepMahto17/SanFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanfi

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.

Features

  • 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.

    Sanfi GIF

Project Structure

The project consists of the following main components:

  1. Frontend - A complete e-commerce website with integrated payment functionality.
  2. Backend - A Django-based API to handle payment processing.
  3. Wallet Integration - Uses Phantom for managing cryptocurrency payments.

Backend

The backend includes:

  • process_payment API Endpoint: Handles payment processing using the PayPal SDK, creating and executing payouts to merchants.

Setup

Prerequisites

  • 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

Backend Setup

  1. Clone the Repository

    git clone https://github.com/SandeepMahto17/SanFi.git
    cd SanFi
  2. Install Requirements

    cd server
    pip install -r requirements.txt
  3. Run the Development Server

    python manage.py runserver

Frontend Setup

  1. Navigate to the Frontend Directory
cd ./DemoEcommerce
  1. Install Dependencies
npm install
  1. Run the development server:
npm run dev