payment static method

void payment(
  1. String token,
  2. BexPaymentListener listener
)

Implementation

static void payment(String token, BexPaymentListener listener) async {
  if (!BexSdk.isSdkInitialized) throw Exception(_SDK_NOT_INITIALIZED);
  _paymentListener = listener;
  _channel.invokeMethod(_PAYMENT, {"token": token});
}