Skip to content

manimaran96/UPI-Payment

Repository files navigation

UPI - Payment

  • UPI payement by Deeplink

Demo App - Click here

Screen Shots


How To Use

    // UPI - Deeplink 
    // upi://pay?pa=960078968101@ippb&pn=Manimaran&tn=UPI Payment by Deeplinking&am=1.0&cu=INR

    // GET UPI - Deeplink
    private fun getUPIDeepLink(
        payeeAddress: String, 
        payeeName: String, 
        amount: Double, 
        currencyUnit: String, 
        transactionNote: String
        ): String {
        return "upi://pay?pa=" + payeeAddress +
                "&pn=" + payeeName +
                "&tn=" + transactionNote +
                "&am=" + amount +
                "&cu=" + currencyUnit
    }

    // Hit - UPI Deep link
    val deepLinkUri: Uri = Uri.parse(getUPIDeepLink(payeeAddress, payeeName, amount, currencyUnit, transactionNote))
    val intent = Intent(Intent.ACTION_VIEW, deepLinkUri)
    startActivity(intent)

Releases

No releases published

Packages

No packages published

Languages