Create BHIM UPI payment button in sketchware


Create component ( Name :- intent )


Create 4 text and 1 button


Button in onClicked activity

Use block
 
In code 👉 Intent intent = new Intent();

Next Use block


Next Use block

  

First join In code 👉 upi://pay?pa=
Taxtview in your UPI ID


Second join in code 👉 &pn=
Taxtview in your application name


Third join in code 👉 &tn=
Textview in payment description


Forth join in code 👉 &am=
Textview in paying Amount


Fifth join in code 👉 &cu=
Textview in your country name


Next Use block
In code 👉  Intent chooser = Intent.createChooser(intent, "Only Bhim UPI");

Next Use block
In code 👉 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)

Next Use block
In code 👉 { startActivityForResult(chooser, 1, null); }



Video Help


7 Comments

  1. Very great work. Hey I needed assistance. I just wanted to include in my app a real-time paying option using my phone simtool kit. I'll appreciate for assist.

    ReplyDelete
  2. Super bro but i need after success payment goto next activity

    ReplyDelete
  3. Super bro but i need after success payment goto next activity

    ReplyDelete
  4. Super bro but i need after success payment goto next activity

    ReplyDelete
  5. I have a problem when we tap on pay button the dailog show on screen (No app can perform this action) how to I fixe this problem

    ReplyDelete
Previous Post Next Post