customUISTC method

Future<PaymentResultData> customUISTC({
  1. required CustomUISTC customUISTC,
})

This function is used to do payment using custom UI. It takes "CustomUI" as an argument, which consists of the brand name, checkout id, card number, holder name, month, year and cvv. The function returns a Future of PaymentResultData.

Implementation

Future<PaymentResultData> customUISTC(
    {required CustomUISTC customUISTC}) async {
  return await implementPaymentCustomUISTC(
    checkoutId: customUISTC.checkoutId,
    shopperResultUrl: shopperResultUrl,
    channelName: channelName,
    paymentMode: paymentMode,
    lang: lang,
    phoneNumber: customUISTC.phoneNumber,
  );
}