lpe_sdk 4.1.0+8
lpe_sdk: ^4.1.0+8 copied to clipboard
Learmond Pay Element (LPE) SDK – A reusable Flutter package supporting card, bank, Apple Pay, and Google Pay in a single API.
4.1.0+8 #
- Fourth stable SDK release: public API, full dartdoc, CI, and improved metadata.
- Unified payment sheet and button widgets for Stripe, Apple Pay, Google Pay, bank payments and Source Pay.
- Example and INSTRUCTIONS updated for SDK consumers.
- Provides a reusable payment sheet for Flutter apps.
- Supports card, US bank, EU bank, Apple Pay, Google Pay and Source Pay payments.
- Modal bottom sheet UI and secure WebView-based payment collection.
- Easy API for payment confirmation and result handling.
- Uses Native Apple Pay and Google Pay functions.
- Add
LearmondPayButtons- a single-line widget that renders Card/Bank and native pay buttons in a 3+2 layout (3 buttons on the top row (Card, US Bank, EU Bank), 2 centered on the bottom row (Apple Pay, Google Pay)). - Separated LearmondPayButtons for single use as needed use.
- Add individual button widgets:
LearmondCardButton,LearmondUSBankButton,LearmondEUBankButton,LearmondApplePayButton,LearmondGooglePayButton,LearmondSourcePayButton. - Call LpeSDKConfig.init to set your apple and google merchant IDs.
- Consistent button sizing and layout.
- README and INSTRUCTIONS with widget usage examples and setup notes for Apple/Google native pay.
- Supports Mac and Linux.
- Web support: adds Google Pay web implementation (Google Pay JS SDK preferred, PaymentRequest fallback) and Apple Pay web flow support.
- Apple Pay (web): implements server-backed merchant validation flow and added example merchant-validation proxy servers (Node and Python) in
example/apple_validation_server. - Web pay: delegates PaymentRequest-capable browsers to the web plugin implementation so Google Pay flows run in Chrome/Edge and Apple Pay sessions can be started when available.
- Implements the paysheet package for easy api acces to its onPay API.
- Paysheet integration: switched to
Paysheet.instance.present(...)and injected card/bank input fields usingUIAdjust(u: [...])for Card, US Bank, and EU Bank flows. - UI: Individual buttons now provide the same paysheet input fields as the composite
LearmondPayButtons(card number, expiry, CVC; routing/account; IBAN). Reduced top spacing before the pay button. - API: composite and individual widgets use
apiKey. - Use the test_app/test_page to mount and test the buttons.