{
  "api": {
    "name": "PhonePePaymentSDK",
    "slug": "phonepepaymentsdk",
    "docs": "",
    "tags": [],
    "methods": [
      {
        "name": "init",
        "signature": "(options: { environment: string; merchantId: string; flowId: string; enableLogging: boolean | false; }) => Promise<Record<string, boolean>>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ environment: string; merchantId: string; flowId: string; enableLogging: boolean; }"
          }
        ],
        "returns": "Promise<Record<string, boolean>>",
        "tags": [],
        "docs": "This method is used to initiate PhonePe Payment sdk.\nProvide all the information as requested by the method signature.\nParams:\n   - environment: This signified the environment required for the payment sdk\n     possible values: SANDBOX, PRODUCTION\n     if any unknown value is provided, PRODUCTION will be considered as default.\n   - merchantId: The merchant id provided by PhonePe  at the time of onboarding.\n   - flowId : An alphanumeric string without any special character. It acts as a common ID b/w\n     your app user journey and PhonePe SDK. This helps to debug prod issue.\n     Recommended - Pass user-specific information or merchant user-id to track the journey.\n   - enableLogging: If you want to enable / visualize sdk log @IOS\n       - enabled = TRUE\n       - disable = FALSE\n   - Return: Boolean (TRUE -> SUCCESS).\n       - SUCCESS: TRUE\n       - FAILURE: FALSE\n           - in iOS = False (if AppID missing:-Please provide PhonePe AppId)\n           - in Android = Error in case of invalid arguments ex: \"Invalid environment or merchantId!\"",
        "complexTypes": [
          "Record"
        ],
        "slug": "init"
      },
      {
        "name": "startTransaction",
        "signature": "(options: { request: string; showLoaderFlag: Boolean | true; appSchema: string | null; }) => Promise<Record<string, string>>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ request: string; showLoaderFlag: true | Boolean; appSchema: string | null; }"
          }
        ],
        "returns": "Promise<Record<string, string>>",
        "tags": [],
        "docs": "This method is used to initiate PhonePe B2B PG Flow.\nProvide all the information as requested by the method signature.\nParams:\n   - request : The request body for the transaction as per the developer docs, Make sure the request body is base64encoded.\n   - appSchema: @Optional(Not need for Android) For iOS, Your custom URL Schemes, as per the developer docs.\n   - showLoaderFlag: @Optional(Default: true) used for hiding the loader visibility in phonepe app intent launch.\nReturn: Will be returning a dictionary / hashMap\n { \n    status: String, // string value to provide the status of the transaction\n                    // possible values: SUCCESS, FAILURE, INTERRUPTED\n    error: String   // if any error occurs\n }",
        "complexTypes": [
          "Record",
          "Boolean"
        ],
        "slug": "starttransaction"
      },
      {
        "name": "getUpiAppsForAndroid",
        "signature": "() => Promise<Record<string, string>>",
        "parameters": [],
        "returns": "Promise<Record<string, string>>",
        "tags": [],
        "docs": "This method is called to get list of upi apps in @Android only.\nReturn: String\n JSON String -> List of UPI App with packageName, applicationName & versionCode\n NOTE :- In iOS, it will throw os error at runtime.",
        "complexTypes": [
          "Record"
        ],
        "slug": "getupiappsforandroid"
      },
      {
        "name": "getUpiAppsForIos",
        "signature": "() => Promise<Record<string, string>>",
        "parameters": [],
        "returns": "Promise<Record<string, string>>",
        "tags": [],
        "docs": "This method is called to get list of upi apps in @iOS only.\nReturn: String\n JSON String -> List of UPI App with applicationName that are installed in the device and supported by PhonePe SDK\n NOTE :- In Android, it will throw os error at runtime.",
        "complexTypes": [
          "Record"
        ],
        "slug": "getupiappsforios"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "Boolean",
      "slug": "boolean",
      "docs": "",
      "tags": [],
      "methods": [
        {
          "name": "valueOf",
          "signature": "() => boolean",
          "parameters": [],
          "returns": "boolean",
          "tags": [],
          "docs": "Returns the primitive value of the specified object.",
          "complexTypes": [],
          "slug": "valueof"
        }
      ],
      "properties": []
    }
  ],
  "enums": [],
  "typeAliases": [
    {
      "name": "Record",
      "slug": "record",
      "docs": "Construct a type with a set of properties K of type T",
      "types": [
        {
          "text": "{\r\n    [P in K]: T;\r\n}",
          "complexTypes": [
            "K",
            "T"
          ]
        }
      ]
    }
  ],
  "pluginConfigs": []
}