merchant_arg_builder library

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.