No official getnet package for flutter

Related tags

Templates get_net
Overview

get_net

Package to do payments using api getnet

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view the getnet online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Usage

You will neede create 3 dart/class files

First

Create a constant.dart file to put params that getnet will need All below params you will find here: https://developers.getnet.com.br/login(create a free account)

const String myUrlGetnetApi = "url getnet api"; const String mySellerId = "your seller id"; const myClientId = "your client id"; const myClientSecret = "your client secret"; const myAuthorizationBasic = "Concat the client_id, followed by ":" (two dots) plus client_secret, converted to base64"

Second

Lets create a custom Dio that will use a interceptor

class CustomDioGetnet {
  Dio dio = Dio();
  CustomDioGetnet() {
    dio.options = BaseOptions(
        connectTimeout: 300000,
        receiveTimeout: 300000,
        baseUrl: myUrlGetnetApi);
    dio.interceptors.add(GetnetInterceptor());
  }
}

Last create a interceptor

This interceptor will put the token saved in login in your request.

 options.headers["Authorization"] = "Bearer $accessToken";

How to use it

In this video I will show you hoe to use this lib(language brazilian portuguese) link: https://youtu.be/l3vLa9l7Wsc

You might also like...

OneAppFlutter - An official event app for HackRU

OneAppFlutter - An official event app for HackRU

One App Flutter The Official HackRU Flutter App Feel free to show some ❤️ and ⭐ the repo to support the project. Description What is the purpose of th

Dec 10, 2022

A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs when current is overscroll, and set scroll direction and cache extent.

extended_tabs Language: English | 中文简体 A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs whe

Dec 13, 2022

The official open source app of the GSDCs of Benin. Feel free to contribute and make this app great for every members

GDSC-Events-Benin The official open source app of the GSDCs of Benin. Feel free to contribute and make this app great for every members 😎 Contributor

Feb 4, 2022

The official mobile application for Hestia '22 is the annual techno-cultural fest of TKM College of Engineering, Kollam.

The official mobile application for Hestia '22 is the annual techno-cultural fest of TKM College of Engineering, Kollam.

made with Flutter Hestia'22 App The official mobile application for Hestia '22 is the annual techno-cultural fest of TKM College of Engineering, Kolla

Nov 16, 2022

An API of the official Django polls tutorial with Dart-Frog 🐸

polls_api 📝 Description A polls api using dart_frog. localhost/polls localhost/polls/[id] ☢️ This is a sample project and dart_frog is currently expe

Sep 20, 2022

Lottie-package-example-Flutter - A simple example about lottie package in Flutter

Lottie-package-example-Flutter - A simple example about lottie package in Flutter

Lottie Package example - Flutter ScreenShot ⚠️ Essential Packages lottie: ^1.2.1

Dec 7, 2022

Flutter package for displaying and animating Scalable Vector Graphics 1.1 files. The package has been written solely in Dart Language.

Flutter package for displaying and animating Scalable Vector   Graphics 1.1 files. The package has been written solely in Dart Language.

Animated SVG | Flutter Package Flutter package for displaying and animating Scalable Vector Graphics 1.1 files. The package has been written solely in

Jul 19, 2022

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

wsa_pacman A GUI package manager and package installer for Windows Subsystem for Android (WSA). Currently provides a double-click GUI installer for .a

Jan 1, 2023

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

wsa_pacman A GUI package manager and package installer for Windows Subsystem for Android (WSA). Currently provides a double-click GUI installer for .a

Nov 14, 2022
Owner
null
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

Stream 659 Dec 25, 2022
A collection of pixel-perfect iOS-styled components and properties for Flutter, following the official guidelines.

cupertinew ⚠️ Experimental and work in progress ⚠️ A collection of pixel-perfect iOS-styled components and properties for Flutter, following the offic

Jeroen Meijer (Jay) 30 Nov 10, 2022
Official Flutter Tracking Library for Mixpanel Analytics

Table of Contents Introduction Quick Start Guide Install Mixpanel Initialize Mixpanel Send Data Check for Success I want to know more! Introduction We

Mixpanel, Inc 46 Jan 4, 2023
PotatoNotes - POSP official notes app written in flutter

Leaflet POSP official notes application, written in flutter, beautiful, fast and secure. Main features Material design Completely cross platform List/

Potato Open Sauce Project 311 Jan 2, 2023
Integration test - Copy of the official Flutter integration test plugin

integration_test This package enables self-driving testing of Flutter code on de

null 0 Jan 5, 2022
Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API

Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API. The package exposes almost all the API provided by iFrame Player API. So, it's 100% customizable.

Pratap Singh 0 May 15, 2022
Koel Player, the official mobile app for Koel

Koel Player The mobile app for Koel, which provides a complete mobile app experience and doesn't have the limitations of the mobile web version. Suppo

Koel 227 Dec 27, 2022
Official Getx CLI

Documentation languages pt_BR en_US - this file zh_CN Official CLI for the GetX™ framework. // To install: pub global activate get_cli // (to use thi

Jonny Borges 440 Jan 8, 2023
AMURoboclub is the official app of AMURoboclub, a student body of ZHCET that nurtures the needs of curious and innovative minds

AMURoboclub is the official app of AMURoboclub, a student body of ZHCET that nurtures the needs of curious and innovative minds. It is the nerve center of robotics enthusiasts who are curious and innovative and wish to come together to learn and share. With the motto 'Where Innovation Meets Implementation', it endeavors to ignite young minds with the fuel of robotics. Enabling that, the app ensures to acquaint its users with the various activities and achievements of AMURoboclub.

AMU Roboclub 9 Dec 6, 2022
Official Sonr Blockchain Node implementation with Frontend Clients to access Wallet.

Sonr Blockchain Sonr-Chain is a blockchain built using Cosmos SDK and Tendermint and created with Starport. Get started starport chain serve serve com

Sonr 625 Dec 29, 2022