• Getting Started
    • Mobile Integration (Android/IOS)
      Enterprise Solutions
      Accept Payments
      Process Payments
      Disbursals
      API References
      Webhooks
      Testing
      Refunds
      Guides
      Other Processes
      Mini Program Platform
        Website Integration

      paytmGetLocation JS API

      Use Case


      To fetch location you will have to use this API


      Response Attributes

      Success:

      Note: Response comes in json with 'data' as key

      ParameterDescriptionExample Value
      data.latCurrent locations latitude28.90
      data.longCurrent locations longitude72.08

      Error Responses:

      ParameterDescriptionExample Value
      data.latlatitude0
      data.longlonditude0

      ERROR CODES

      codeDescription
      -1not_determined, (applicable to iOS)
      0denied/unauthorised,
      1authorized


      Request CodeResponse JSON
      
                   JSBridge.call('paytmGetLocation',{},
                    function(result) {
                      console.log(JSON.stringify(result))
                  });