P2P payment solution using Stream's Flutter SDK and Rapyd's Wallet API

Overview

Peer-to-peer payment integration to a messaging app using Flutter ๐Ÿ’ฐ

This project shows how to integrate a peer-to-peer payment solution to your Stream Chat using Rapyd's Wallet API with the help of Flutter.

App in action

Project structure ๐Ÿ—๏ธ

The lib directory contains the Dart code of the Flutter app, it is distributed in the following directories:

  • screens: contains all the Flutter app screens
  • widgets: contains various widgets which are used inside the screens
  • utils: contains the utility classes for connecting to the Wallet API
  • models: contains the model classes for easy storing of API data
  • res: contains the color palette used in the app

Requirements ๐Ÿงช

Some prerequisites to run this project:

  • Flutter 2 with null safety enabled (it is tested on Flutter v2.2.3): You can install it from the Flutter website.

  • Setup Stream account: You can sign up for a Stream account at getstream.io, and get the free trial of Stream's Chat Messaging by going here.

  • Setup Rapyd account: You can sign up for a Rapyd account here, and enable their Sandbox mode.

Usage ๐Ÿ‘จโ€๐Ÿ’ป

For building and running this project locally, follow the steps below:

  • Clone this repository:

    git clone https://github.com/sbis04/stream_payment.git
  • Navigate to the project directory:

    ch stream_payment
  • Get Flutter dependencies:

    flutter pub get
  • Create a secrets.dart dart file inside the lib directory with the following content:

    // Stream secrets
    const STREAM_KEY = 'stream-key-here';
    const USER_TOKEN = 'stream-user-token-here';
    
    // Rapyd secrets
    const RAPYD_ACCESS_KEY = 'rapyd-access-key-here';
    const RAPYD_SECRET_KEY = 'rapyd-secret-key-here';

    You can generate the Stream user token from here.

  • Run the app:

    flutter run

License ๐Ÿ“

Copyright (c) 2021 Souvik Biswas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You might also like...

Flutter/dart package for payment gateway bKash (Bangladesh)

bKash(BD) Mobile Finance Payment Gateway Flutter Package This is a Flutter package for bKash BD Payment Gateway. This package can be used in flutter p

Nov 11, 2022

Item selling mobile app with secure payments with Payhere payment gateway. Auto APK generation with github actions CI/CD.

payhere_demo A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Jan 20, 2022

Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web.

flutter_web3 This is a fork of flutter_web3_provider. Be sure to check out the original package. Introduction flutter_web3 v2 is full Dart class and f

Jan 2, 2023

Zcash and Ycash light shielded wallet

ZWallet The fastest, most advanced, shielded wallet for Zcash Main Features Warp Sync: PROCESSES ~10 000 BLOCKS PER SECOND (1) Transparent and Shielde

Dec 19, 2022

Plaso Connect is an application which acts as a one-stop solution where the people requiring blood plasma/oxygen can directly find and contact the donors and healthcare units as per their requirements

Plaso Connect is an application which acts as a one-stop solution where the people requiring blood plasma/oxygen can directly find and contact the donors and healthcare units as per their requirements

PLASO CONNECT - The Lifeline A one-stop platform for COVID relief resources -- Connecting patients with Plasma donors and oxygen suppliers. Built for

Oct 28, 2022

a software to connect you and your friends and others, are you guys also just tensed over the overuse of social media so we have a solution, appx (name not decided yet)

appx a software to connect you and your friends and others, are you guys also just tensed over the overuse of social media so we have a solution, appx

Jun 9, 2022

a software to connect you and your friends and others, are you guys also just tensed over the overuse of social media so we have a solution, sociio

APPX A software that will allow you to connect with your friends and family ! Are you guys also tensed over the over-use of social media ?? We have a

Jun 9, 2022

A Tezos Wallet built with Flutter

Anthos A Tezos Wallet built using Flutter at Hackout 2021 Problem it solves Easy way to send and receive Tezos XTZ Built with Flutter - Runs on web, m

Aug 4, 2022

Natrium - Fast, Robust & Secure NANO Wallet, now written with Flutter.

Natrium - Fast, Robust & Secure NANO Wallet, now written with Flutter.

Natrium - Fast, Robust & Secure NANO Wallet What is Natrium? Natrium is a cross-platform mobile wallet for the NANO cryptocurrency. It is written in D

Dec 30, 2022
Owner
Souvik Biswas
Android, iOS & Flutter Developer | C++, Java and Dart Programmer | Technical Writer @Medium & @NevercodeHQ | @udacity Secure and Private AI '19 Scholar
Souvik Biswas
The Fuse Wallet is a cross platform Ethereum wallet written in Dart and built on Flutter.

Fuse Wallet The Fuse Wallet is a cross platform Ethereum wallet written in Dart and built on Flutter. It's runninng on the Fuse network, but can be pl

null 4 Nov 9, 2022
Blaise Wallet - A wallet for the Pascal cryptocurrency, made with Flutter

Blaise - Simple, Sleek & Secure PASCAL Wallet [ What is Blaise? Blaise is a cross-platform mobile wallet for the PASCAL cryptocurrency. It is written

Appditto 209 Dec 4, 2022
Official Flutter SDK for Khalti Payment systems

Khalti Payment Gateway for Flutter Use Khalti Payment Gateway solution in your app or website to simplify payment for your customers. You do not need

Khalti 16 Oct 13, 2022
A radio player mobile application which streams audio from Radio Sai Global Harmony.

Sai Voice A radio player which streams audio from Radio Sai Global Harmony. *Special Thanks to Aman Achutan for the logo Om Sri Sai Ram ?? Sai Voice i

Sai Rajendra Immadi 11 Nov 26, 2022
A shopping cart application that lets the user create an account, select items, save the items in the cart, pay using the payment gateway, change account details and check order history.

Shopping Cart A new Flutter application. The main code file has all the code required for the mobile application. Getting Started This project is a st

null 1 Oct 14, 2021
A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS

?? Paystack Plugin for Flutter A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS. ?? Installation To u

Wilberforce Uwadiegwu 165 Jan 4, 2023
A flutter plugin for integrating razorpay payment gateway. Supports Android and iOS.

Flutter Razorpay Plugin A flutter plugin for razorpay integration for both android and ios. If you use this library in your app, please let me know an

Chetan Kaushik 28 Dec 13, 2022
Attendance and Payment manager

Manage Me Application A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you st

Rohit Karnawat 1 Oct 16, 2021
Integrate Razorpay payment gateway flutter in just 15 minutes

How to Integrate Flutter Payments with Razorpay Payment Gateway Learn how to integrate payment gateway with Razorpay in less than 15 minutes, other ti

Sanskar Tiwari 25 Nov 25, 2022
Zaincash payment gateway integration for flutter

zaincash_flutter A none offical Zaincash payment gateway integration for flutter INSTALL in your project terminal enter dart pub add zaincash USE F

Karrar S. Honi 1 May 20, 2022