MethodNotAvailableError

Exception thrown when trying to call a method that is not available

Properties

JS
JavaScript

try {

    await payments.unavailableMethod();

}

catch (e) {

   if (e instanceof MethodNotAvailableError){

      alert("Method is not enabled for this app.");

   }

}