pit_payment 0.3.0 copy "pit_payment: ^0.3.0" to clipboard
pit_payment: ^0.3.0 copied to clipboard

Payment Solution by PIT, supported by Midtrans. Credit card supported

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pit_payment/pit_payment.dart';

void main() => runApp(PitPaymentDemo());

class PitPaymentDemo extends StatefulWidget {
  @override
  _PitPaymentDemoState createState() => _PitPaymentDemoState();
}

class _PitPaymentDemoState extends State<PitPaymentDemo> {
  @override
  Widget build(BuildContext context) {
    InkWell();
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.white,
        appBar: AppBar(
          title: const Text('Pit Payment Demo'),
        ),
        body: SingleChildScrollView(
            child: Container(
              margin: EdgeInsets.all(16.0),
              child: PitPayment(100000.0, (type, {result}) {
                print("I got payment : $type, $result");
              }, locale: Locale("id"),),
            )),
      ),
    );
  }
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Payment Solution by PIT, supported by Midtrans. Credit card supported

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, intl, pit_components

More

Packages that depend on pit_payment