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
Native-pay helper that delegates Apple/Google Pay to platform code.
LearmondPayButtons
A small widget that renders a row/wrap of payment method buttons.
LearmondPaySheet
Static helper to show Stripe payment sheet with a single line of code.
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
Contains the result of a payment attempt, including status, intent ID, error, and raw response.
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.