smat_pay_payment_plugin 1.0.1 copy "smat_pay_payment_plugin: ^1.0.1" to clipboard
smat_pay_payment_plugin: ^1.0.1 copied to clipboard

A payment plugin form for Smatpay users.

smat_pay_payment_plugin #

A payment plugin form for Smatpay users

Getting Started #

Example Usage, Use it anywhere in your app #

Setup locator is necessary setupLocator(); // <--- make sure this is before runApp #

import 'package:flutter/material.dart'; import 'package:smat_pay_payment_plugin/app/app.locator.dart'; import 'package:smat_pay_payment_plugin/common/api_config.dart'; import 'package:smat_pay_payment_plugin/views/payment_form.dart';

void main() { setupLocator(); // <--- make sure this is before runApp runApp(MyApp()); }

class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: PaymentForm(paymentCode: "dd59bd5a-175d-4832-b9ea-8de01494c742", baseUrl: 'https://netone-dev.smatpay.africa:8443',endpointMode: EndpointMode.test), ); } }