lpe_with_source 0.0.2+4 copy "lpe_with_source: ^0.0.2+4" to clipboard
lpe_with_source: ^0.0.2+4 copied to clipboard

Learmond Pay Element with Source - Paysheet built in flutter. Transposable to any app framework.

example/lib/main.dart

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

void main() {
  LpeWithSourceConfig.init(
    appleMerchantId: 'merchant.com.example',
    googleGatewayMerchantId: 'exampleGatewayId',
  );
  runApp(const ExampleApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('lpe_with_source example')),
        body: const Center(child: ExampleBody()),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        LearmondPayButtons(
          amount: '9.99',
          onResult: (r) {
            // Handle result in your app.
            ScaffoldMessenger.of(
              context,
            ).showSnackBar(SnackBar(content: Text('Payment result: $r')));
          },
        ),
      ],
    );
  }
}
0
likes
110
points
149
downloads

Publisher

verified publisherthelearmondcorporation.com

Weekly Downloads

Learmond Pay Element with Source - Paysheet built in flutter. Transposable to any app framework.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_test, lpe, paysheet, webview_flutter

More

Packages that depend on lpe_with_source

Packages that implement lpe_with_source