getJSDestroyWallet static method

String getJSDestroyWallet(
  1. BioPayload payload
)

Implementation

static String getJSDestroyWallet(BioPayload payload) {
  var wallet = {
    "authenticate_type": "password",
    "user_token": payload.userToken,
    "wallet_id": payload.walletId,
    "token": payload.token,
  };

  return "BootpaySDK.destroyWallet(" +
      json.encode(wallet) +
      ")" +
      ".then( function (data) {" +
      easySuccess() +
      "}, function (data) {" +
      cancel() +
      easyError() +
      "})";
}