custom_ui/method_channel_custom_ui_stc
library
Functions
-
getCustomUiSTCModelCards({required PaymentMode paymentMode, required String phoneNumber, required String checkoutId, required String lang, required String shopperResultUrl})
→ Map<String, String?>
-
This method creates a map of parameters to be used for a custom UI STC (STC Pay) payment.
It requires the payment mode, phone number, checkout ID, language,
and shopper result URL as parameters. It returns a map containing data for the payment type,
mode, checkout id, phone number, language, and shopper result URL.
-
implementPaymentCustomUISTC({required PaymentMode paymentMode, required String checkoutId, required String channelName, required String shopperResultUrl, required String phoneNumber, required String lang})
→ Future<PaymentResultData>
-
implementPaymentCustomUISTC is a method used to make online payments.
It requires the paymentMode, checkoutId, channelName, shopperResultUrl,
phoneNumber and lang to be passed as arguments for successful implementation.
It returns a PaymentResultData object with the paymentResult and errorString.