Querys

Mexico

This is an example of an operation that does not provides UI from the SDK. You can query for an operation by the external reference number you’re provided us for the transaction.

    val callback = object : OperationCompletion { 

            override fun onOperationSuccess(result: String) { 

                hideLoading() 

                resultDescription.text = result 

            } 

  

            override fun onOperationFailed(errorCode: Int, errorMessage: String) { 

                hideLoading() 

                resultDescription.text = "$errorCode $errorMessage" 

            } 

        } 

    //Remember this is an async operation 

    FirstDataSDK.retrievePaymentInfoForExternalReferenceNumber(number, callback) 

Note: The result will be a json with details about the operation, same as payment result