paysheet library

Classes

LearmondNativePay
Backwards-compatible shim classes (small surface area)
LearmondPaySheet
StripePaymentResult
Clean, minimal paysheet implementation for the SDK.

Functions

amountToCents(double amount) int
computeEffectiveMerchantArgs({Map<String, dynamic>? merchantArgs, String? amount, String? merchantId, String? merchantName, String? merchantInfo, List<SummaryLineItem>? summaryItems, String? currency}) Map<String, dynamic>
showLpeNativePay(BuildContext context, {required String method, String? publishableKey, String? merchantId, String? googleGatewayMerchantId, Map<String, dynamic>? merchantArgsParam, required String amount, required String currency, required void onResult(StripePaymentResult)}) Future<void>
Top-level helper to invoke native-pay integrations. This wraps the platform shim LearmondNativePay.showNativePay and normalizes the arguments used by the button widgets.
showLpePaysheet(BuildContext context, {required String publishableKey, String? clientSecret, required String method, String? amount, Map<String, dynamic>? merchantArgs, bool mountOnShow = false, bool enableStripeJs = false, void onResult(StripePaymentResult)?}) Future<StripePaymentResult?>