A Flutter package for shockinflux payment gateway.
-
Add dependency to
pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dartlang.org
dependencies:
flutter_shockinflux: 1.0.1
- Import the package
import 'package:flutter_shockinflux/flutter_shockinflux.dart';
- Adding CreditCardWidget
With required parameters
PaymentMethodsWidget(
amount: amount,
email: email,
storeid: storeid,
reference: reference,
transactionid: transactionid,
template: template,
currency: currency,
comment: comment,
themeColor: Color(0xFF003F5F),
),
Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.
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 our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.