Loader

Use the following function when initiating the payment:

startCompletePaymentFlow(
  paymentSelected: PaymentSelected? = null,
  showPaymentStatus: Boolean = true,
  createPaymentFun: (suspend(ott: String) -> Unit)? = null,
  callbackPaymentState: ((String?) -> Unit)? = null,
  callbackOTT: ((String?) -> Unit)? = null,
)

The createPaymentFun parameter is a suspend function in which Yuno waits for the sequential payment creation. Once the payment is created, completing the suspend function allows Yuno to proceed with the payment. If you opt for this flow, there's no need to invoke continuePayment().