seerbit_flutter 0.0.1 seerbit_flutter: ^0.0.1 copied to clipboard
A new Flutter package project.
Seerbit Flutter WebView SDK #
Seerit Flutter SDK can be used to integrate the SeerBit payment gateway into your flutter application.
Requirements #
Register for a merchant account on Seerbit Merchant Dashboard to get started.
flutter pub get seerbit_flutter
API Documentation #
Support #
If you have any problems, questions or suggestions, create an issue here or send your inquiry to care@seerbit.com
Implementation #
You should already have your API keys. If not, go to dashboard.seerbitapi.com.
import 'package:flutter/material.dart';
import 'package:seerbit_flutter/seerbit_flutter.dart';
class CheckOut extends StatelessWidget {
const CheckOut({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return TextButton(
onPressed: () => SeerBitPayment.checkout(
context,
PayloadModel(
currency: 'NGN',
email: "hftserve@gmail.com",
description: "Foxsod",
fullName: "Combs Combs",
country: "NG",
amount: "100",
callbackUrl: "callbackUrl",
publicKey: "YOUR PUBIC KEY",
reportLink: "",
pocketRef: "",
vendorId: ""),
onFailure: () {},
onSuccess: () {},
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.red),
),
child: Text(
'Checkout',
style: TextStyle(color: Colors.white),
));
}
}