A native Dart SDK for Stripe.

Related tags

Templates stripe_fl
Overview

stripe_fl

Build Status

stripe

A native Dart SDK for Stripe.

Documentation

Initializing

import 'package:stripe_fl/stripe_fl.dart';
      Stripe.init(
        production: false,
        publicKey: 'PUBLIC_KEY',
        secretKey: 'SECRET_KEY',
        useLogger: true);

Generating Charge Tokens

    Response<CardToken> cardObject = await Tokenize().card(
    cvc: 'cvc',
    expiryMonth: month,
    expiryYear: year,
    number: 'number',
    name: 'full name',
    phone: 'phone ');

Response

CardToken {
  id=tok_1FqzkhDiaj1muI06cZdNlXCt,
  object=token,
  card=Card {
    id=card_1FqzkhDiaj1muI06aHc1QnaR,
    object=card,
    addressLine1=2348113823269,
    addressLine1Check=unchecked,
    brand=Visa,
    country=US,
    cvcCheck=unchecked,
    expMonth=12,
    expYear=2020,
    fingerprint=yyJwu2A8pzbrjay0,
    funding=credit,
    name=Ogbonda Chiziaruhoma,
  },
  clientIp=41.203.73.248,
  created=1576664855,
  livemode=false,
  type=card,
  used=false,
}}

Charging a card

    Response<ChargeResponse> chargeCard = await Charge().card(
            source: '',
            amount: 2000,
            description: 'Test Money Collected from [email protected]',
            receiptEmail: '[email protected]');
ChargeResponse {
  id=ch_1FqzkiDiaj1muI06lPTc6C5x,
  object=charge,
  amount=2000,
  amountRefunded=0,
  balanceTransaction=txn_1FqzkjDiaj1muI06NZevC6vz,
  billingDetails=BillingDetails {
    address=Address {
      line1=2348113823269,
    },
    name=Ogbonda Chiziaruhoma,
  },
  captured=true,
  created=1576664856,
  currency=usd,
  description=Test Money Collected from chiiaruhoma@gmail.com,
  disputed=false,
  livemode=false,
  outcome=Outcome {
    networkStatus=approved_by_network,
    riskLevel=normal,
    riskScore=6,
    sellerMessage=Payment complete.,
    type=authorized,
  },
  paid=true,
  paymentMethod=card_1FqzkhDiaj1muI06aHc1QnaR,
  paymentMethodDetails=PaymentMethodDetails {
    creditCard=CreditCard {
      brand=visa,
      country=US,
      expMonth=12,
      expYear=2020,
      fingerprint=yyJwu2A8pzbrjay0,
      funding=credit,
      last4=4242,
      network=visa,
    },
    typ<…>
flutter: ChargeResponse {
  id=ch_1FqzkiDiaj1muI06lPTc6C5x,
  object=charge,
  amount=2000,
  amountRefunded=0,
  balanceTransaction=txn_1FqzkjDiaj1muI06NZevC6vz,
  billingDetails=BillingDetails {
    address=Address {
      line1=2348113823269,
    },
    name=Ogbonda Chiziaruhoma,
  },
  captured=true,
  created=1576664856,
  currency=usd,
  description=Test Money Collected from chiiaruhoma@gmail.com,
  disputed=false,
  livemode=false,
  outcome=Outcome {
    networkStatus=approved_by_network,
    riskLevel=normal,
    riskScore=6,
    sellerMessage=Payment complete.,
    type=authorized,
  },
  paid=true,
  paymentMethod=card_1FqzkhDiaj1muI06aHc1QnaR,
  paymentMethodDetails=PaymentMethodDetails {
    creditCard=CreditCard {
      brand=visa,
      country=US,
      expMonth=12,
      expYear=2020,
      fingerprint=yyJwu2A8pzbrjay0,
      funding=credit,
      last4=4242,
      network=visa,
    },
    type=card,
  },
  receiptUrl=<<https://pay.stripe.com/receipts/acct_1FMpnCDiaj1muI06/ch_1Fq<…>>>
You might also like...

A Dart-native lightweight Apache Pulsar client primarily focused on the IoT telemetry domain

pulsar_iot_client A lightweight Apache Pulsar client primarily focused on the IoT telemetry domain. This project aims to improve the resulting perform

May 10, 2022

Mildly encrypted package - An encryption client & server for Dart Native + mobile platforms.

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Jan 9, 2022

MercadoPago Dart SDK

MercadoPago SDK module for Payments integration Usage To use this plugin, add mercadopago_sdk as a dependency in your pubspec.yaml file. Basic checkou

Oct 6, 2022

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Official Flutter packages for Stream Chat Quick Links Register to get an API key for Stream Chat Flutter Chat SDK Tutorial Chat UI Kit Sample apps Thi

Dec 25, 2022

Replaces Flutter's bundled Dart SDK with the macOS arm64 version

This script replaces Flutter's bundled Dart SDK with the macOS arm64 version Get

Oct 9, 2022

Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null Safety 📑🚩

Todo 📑 🚩 📌 Introduction Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null S

Nov 5, 2022

Flutter-Udemy - - A Udemy clone using Flutter sdk and dart.

Flutter-Udemy - - A Udemy clone using Flutter sdk and dart.

udemy_clone A new Flutter project. Below are some images : Getting Started This project is a starting point for a Flutter application. A few resources

Apr 24, 2022

O school_app é uma Aplicação Mobile para uma escola que foi desenvolvida utilizando Flutter SDK/Dart

O school_app é uma Aplicação Mobile para uma escola que foi desenvolvida utilizando Flutter SDK/Dart

O school_app é uma Aplicação Mobile para uma escola que foi desenvolvida utilizando Flutter SDK/Dart(Para o aplicativo móvel), Node.Js (Para a API) e PostgreSQL(Para o Banco de dados).

May 21, 2022

Dart SDK for StarkNet ✨

⚠️ ⚠️ ⚠️ This package is a work in progress. Do not use in production. ⚠️ ⚠️ ⚠️ starknet.dart Dart SDK for StarkNet ✨ The goal of this dart package is

Dec 15, 2022
Owner
Chiziaruhoma Ogbonda
✨Mobile Developer. ✨UI/UX designer. ✨UI Developer. 🚀I build ideas to software. 👨🏾‍💻 I live Flutter.
Chiziaruhoma Ogbonda
Web checkout dependency for stripe

Stripe Checkout For Flutter The quickest way to build conversion-optimized payment forms, hosted on Stripe. final sessionId = await getSessionIdFromMy

Mofidul Islam 3 Jun 2, 2022
dna, dart native access. A lightweight dart to native super channel plugin

dna, dart native access. A lightweight dart to native super channel plugin, You can use it to invoke any native code directly in contextual and chained dart code.

Assuner 14 Jul 11, 2022
react-native native module for In App Purchase.

Documentation Published in website. Announcement Version 8.0.0 is currently in release candidate. The module is completely rewritten with Kotlin and S

dooboolab 2.3k Dec 31, 2022
how to Integrating facebook audience network to flutter app for banner, interstitial, rewarded, native and native banner

fb_ads_flutter_12 A new Flutter project. Getting Started Watch the complite tutorial for integrating Facebook ads into the Flutter app in our Youtube

null 4 Nov 26, 2022
Flutter native ads - Show AdMob Native Ads use PlatformView

flutter_native_ads Flutter plugin for AdMob Native Ads. Compatible with Android and iOS using PlatformView. Android iOS Getting Started Android Androi

sakebook 64 Dec 20, 2022
Easy-to-make native ads in flutter using AdMOB SDK.

native_admob_flutter Easy-to-make ads in Flutter with Google's AdMob SDK. English | Português Get started To get started with Native Ads for Flutter,

Bruno D'Luka 81 Dec 12, 2022
Flutter plugin for Firebase Auth UI. Supports popular auth providers by using native SDK for Android and iOS.

firebase_auth_ui Flutter plugin of Firebase UI which allows to add login/sign-up quickly. NOTE: This plugin is under development. Please provide Feedb

Sandip Fichadiya 50 Mar 23, 2022
RoomKit Flutter is a wrapper of Native Android and iOS RoomKit SDK

ZEGOCLOUD RoomKit Flutter RoomKit Flutter is a wrapper of Native Android and iOS RoomKit SDK Getting started Prerequisites Basic requirements Android

null 0 Dec 16, 2022
Woocommerce SDK for Flutter. The Complete Woo Commerce SDK for Flutter.

woocommerce Woocommerce SDK for Flutter. Getting Started Add the package to your pubspec.yaml and import. import 'package:woocommerce/woocommerce.dart

RAY 105 Dec 6, 2022