lpe_sdk library

Classes

Learmond
LearmondApplePayButton
Button: Apple Pay
LearmondCardButton
Button: Card
LearmondEUBankButton
Button: EU Bank (IBAN)
LearmondGooglePayButton
Button: Google Pay
LearmondIndividualButtons
Layout helper that arranges the individual buttons using the same sizing and spacing rules as LearmondPayButtons so apps can embed the individual components while preserving a consistent appearance.
LearmondNativePay
Backwards-compatible shim classes (small surface area)
LearmondPayButtons
Composite widget that renders a compact set of payment method buttons.
LearmondPaySheet
LearmondUSBankButton
Button: US Bank
LpeSDKConfig
Global configuration for LPE (Learmond Pay Element).
MerchantArgsController
Controller for building and normalizing merchantArgs passed to paysheet and native pay.
StripePaymentResult
Clean, minimal paysheet implementation for the SDK.
SummaryLineItem
Lightweight representation of a merchant summary line item.

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. 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. Clear the application-wide merchant args builder.
setMerchantArgsBuilder(Map<String, dynamic>? m) → void
Set application-wide merchant args builder to be used by buildMerchantArgs when no explicit builder is provided. Set application-wide merchant args builder to be used by buildMerchantArgs when no explicit builder is provided.