tingo_pay

Creator: coderz1093

Last updated:

0 purchases

tingo_pay Image
tingo_pay Images

Languages

Categories

Add to Cart

Description:

tingo pay

Features #
VERSION: 0.0.9
copied to clipboard
Features #
Payment Services
Getting started #
Package for easy use of tingo payment gateway for flutter developers.
Usage #
//intialize the tingo payment in your instate
//Use the tingo gateway widget inside your app
import 'package:flutter/material.dart';
import 'package:tingo_pay/tingo_controller.dart';
import 'package:tingo_pay/tingo_pay.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
color: Colors.yellow,
title: 'TingoPay Demo',
theme: ThemeData(
primarySwatch: Colors.red,
),
home: HomePage(),
);
}
}

class HomePage extends StatefulWidget {
@override
State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

@override
void initState() {
//intialize Here
Tingo.init(
merchantKey: "yqELaZtj9Exxxxx",
publicKey: "PUB-gHZo9tIpYxtlFmowxxxxxxxxxxxxxxxxx",
successUrl: "https://your-site.com/xxxx",
failUrl: "https://your-site.com/xxxxxx",
);
super.initState();
}

@override
Widget build(BuildContext context) {
return TingoGateWay(
email: "[email protected]",
description: "Description",
firstName: "John",
lastName: "Doe",
);
}
}

copied to clipboard
Additional information #
All you need is to initialize the package, the package handles everything..

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.