otpPayment static method

void otpPayment(
  1. String ticket,
  2. BexOtpPaymentListener listener
)

Implementation

static void otpPayment(String ticket, BexOtpPaymentListener listener) async {
  if (!BexSdk.isSdkInitialized) throw Exception(_SDK_NOT_INITIALIZED);
  _otpPaymentListener = listener;
  _channel.invokeMethod(_OTP_PAYMENT, {"ticket": ticket});
}