lpe_sdk library

Classes

Learmond
LearmondApplePayButton
Button: Apple Pay
LearmondCardButton
Button: Card
LearmondEUBankButton
Button: EU Bank (IBAN)
LearmondGooglePayButton
Button: Google Pay
LearmondNativePay
Dart wrapper for the platform native-pay bridge (lpe_sdk/native_pay). Calls the platform implementation and normalizes the result into a PaymentResult instance used throughout the SDK.
LearmondPayButtons
Widget that displays Learmond Pay buttons for Card, US Bank, EU Bank, Apple Pay, and Google Pay.
LearmondUSBankButton
Button: US Bank
LpeSDKConfig
Global configuration for LPE (Learmond Pay Element).
MerchantArgsController
PaymentResult
Styling-only paysheet: all payment logic and inputs removed.
Paysheet
Convenience singleton that exposes a stable public API: Paysheet.instance.present(...) shows the paysheet directly.
SummaryLineItem
Lightweight representation of a merchant summary line item.
UIAdjust
Optional UI adjust configuration for the paysheet UI.

Functions

buildMerchantArgs({String? merchantId, String? merchantName, String? merchantInfo, String? gatewayMerchantId, List<SummaryLineItem>? summaryItems, Map<String, dynamic>? builder}) Map<String, dynamic>?
Build a normalized merchantArgs map (or null if empty).
buildMerchantArgsFromAmount({required String amount, String? merchantId, String? merchantName, String? merchantInfo, List<SummaryLineItem>? extraSummaryItems, Map<String, dynamic>? builder}) Map<String, dynamic>?
Convenience helper: build merchantArgs from common form fields like an amount string and optional summary items. This keeps callers from reimplementing amount-to-cents and ensures the package remains the single source of truth for merchant args construction.
clearMerchantArgsBuilder() → void
Clear the application-wide merchant args builder.
computeEffectiveMerchantArgs({Map<String, dynamic>? merchantArgs, String? amount, String? merchantId, String? merchantName, String? merchantInfo, List? summaryItems}) Map<String, dynamic>
setMerchantArgsBuilder(Map<String, dynamic>? m) → void
Set application-wide merchant args builder to be used by buildMerchantArgs when no explicit builder is provided.