lpe 0.0.3
lpe: ^0.0.3 copied to clipboard
Learmond Pay Element - Paysheet built in flutter. Transposable to any app framework.
LPE (Learmond Pay Element) #
A reusable Flutter package for Stripe payment sheets, providing a simple modal interface for card, bank, Apple Pay, and Google Pay payments.
Features #
- Stripe Payment Sheet integration
- Card, US bank, EU bank, Apple Pay, Google Pay support
- Modal bottom sheet UI
- Easy API for payment confirmation and result handling context: context,
Installation #
Add to your pubspec.yaml:
dependencies:
lpe:
path: ../LPE
flutter_inappwebview: ^6.0.0
import 'package:lpe/learmond_pay_element.dart';
final result = await LearmondPaySheet.show( context: context, publishableKey: 'pk_test_...', clientSecret: 'pi_...secret...', method: 'card', // or 'us_bank', 'apple_pay', 'google_pay' title: 'Pay $10.00', ); if (result.success) { // Payment succeeded }
## API
- `LearmondPaySheet.show(...)` — Shows the payment sheet and returns a `PaymentResult`.
- Supports custom titles, amounts, and button labels.
## Example
See `example/` for a full integration example.
## License
MIT
## Author
The Learmond Corporation