BoxPayCheckout class

Constructors

BoxPayCheckout({required BuildContext context, required String token, String shopperToken = "", required dynamic onPaymentResult(PaymentResultObject), Map<ConfigurationOptions, dynamic>? configurationOptions})

Properties

configurationOptions Map<ConfigurationOptions, dynamic>?
final
context BuildContext
final
domain String
getter/setter pair
env String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isQREnabled bool
getter/setter pair
onPaymentResult → dynamic Function(PaymentResultObject)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shopperToken String
getter/setter pair
token String
final

Methods

display() Future<void>
extractAmount(String responseData) String
extractBackURL(String responseData) String
extractCheckoutStatus(String responseData) → (String, String?)
extractMerchantDetails(String responseData) Map<String, dynamic>
extractReferer(String responseData) String
extractShopperDetails(String responseData) Map<String, dynamic>
extractUniqueRef(String responseData) String
fetchRecommendedInstruments(String uniqueRef) Future<Map<String, dynamic>?>
New API call to fetch saved/recommended instruments
fetchSessionDataFromApi(String token) Future<String>
fetchTransactionStatus() Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processSavedInstrumentPayment(String instrumentRef, Map<String, dynamic> shopperDetails) Future<void>
Process payment for the Swipe Action
storeMerchantDetailsAndReturnUrlInSharedPreferences(Map<String, dynamic> merchantDetails, String backurl) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited