ready_ui/method_channel_ready_ui
library
Functions
-
getReadyModelCards({required List<String> brands, required String checkoutId, required String shopperResultUrl, required String lang, required PaymentMode paymentMode, required String merchantId, required String countryCode, String? companyName = "", String? themColorHexIOS, required bool setStorePaymentDetailsMode})
→ Map<String, dynamic>
-
This function retrieves the necessary attributes to create a ready-to-use model card.
It takes in the required parameters of brand, checkoutId, shopperResultUrl, lang,
paymentMode, and setStorePaymentDetailsMode. An optional parameter, themColorHexIOS,
can also be provided. The function returns a Map with the corresponding values of type, mode,
checkoutid, brand, lang, themColorHexIOS, ShopperResultUrl, and setStorePaymentDetailsMode.
-
implementPayment({required List<String> brands, required String checkoutId, required String channelName, required String shopperResultUrl, required String lang, required PaymentMode paymentMode, required String merchantId, required String countryCode, String? companyName = "", String? themColorHexIOS, required bool setStorePaymentDetailsMode})
→ Future<PaymentResultData>
-
This function implements the payment with the provided payment details.
It takes in parameters like brand, checkoutId, channelName, etc. which are essential for the payment to happen.
It returns a PaymentResultData object which is processed and managed by PaymentResultManger.
If there is any error, it is caught and a PaymentResultData object with error string is returned.