16 Matching Annotations
  1. Sep 2023
    1. linkActionDelegateUpiTurboLinkAccountDelegate Used as a callback to send response or failure to you. Action Parameter Values

      Response parameter table missing below response parameters. Action Parameter Values and description can also come under response parameters

    2. case LinkActionLinkAccountResponse: if (action.error == NULL) { // Handle success / error during new account onboarding } }}

      After code. add a line to link Action description and action parameter values below

    1. If the customer has not linked any UPI account, use the following code to link the newly created UPI account with your app. This function can be called from anywhere in the application, providing multiple entry points for customers to link their UPI account with your app.

      TODO - Update

  2. Aug 2023
    1. Manage UPI Accountscopyrazorpay.upiTurbo?.manageUpiAccounts("9999999999", object : UpiTurboManageAccountListener { override fun onError(error: JSONObject) { /*Throws error if UPI Turbo cannot be initialized or throws error*/} override fun onSuccess(data: Any) {/*Can be safely ignored*/}})

      Add Models after ManageUPIAccounts section - UpiAccount, TPVEnabledAccounts, TPVBankAccount

    2. razorpay.upiTurbo?.linkNewUpiAccountWithUI("<customerMobile>",object: UpiTurboLinkAccountResultListener{ override fun onSuccess(upiAccount: UpiAccount){ } override fun onError(error: Error){ } }, "<color>")

      Updated in ref doc

    3. razorpay.upiTurbo?.getLinkedUpiAccounts("<customerMobile>", object : UpiTurboResultListener { override fun onSuccess(accList: List<UpiAccount>) { if (accList.isNotEmpty()) { Log.d("UpiTurbo", "UpiAccount list") } else { // call linkNewAccount() } } override fun onError(error: Error) { Log.d("UpiTurbo", error.message) }})

      Updated in ref doc

    4. The below function is triggered internally after integrating with the Razorpay Android Custom SDK. Initialise SDKcopyimport com.razorpay.Razorpay Razorpay razorpay = new Razorpay(activity); The .onBackPressed() is triggered when a user tries to exit the app or return to the previous page. The razorpay.upiTurbo.destroy() function clears that particular session. Therefore, when the user returns, the payment process starts from the beginning. Kotlincopyoverride fun onBackPressed() {razorpay.onBackPressed()razorpay.upiTurbo.destroy()super.onBackPressed()}

      Update according to Headless doc