UPI Payment Gateway

Hello Everyone. I hope you all are Good.
Today i am back with my new tutorial about how you can make upi payments using activity starter only …
So let’s start…

4 Components Required.

Activity starter ( to make & check payment)
2 Textbox ( to enter amount & note)
1 label ( to get result like payment success or fail)
Button ( to trigger the activity starter)

Now blocks Part .

1st you need global variable to create 6 digit random order id for payment.

IMG_20200819_120536

Now set activity action android.intent.action.VIEW

Now set data uri

upi://pay?pa=your upi address like(googlepay@oksbi)&pn=Your name&tr=orderid(use global variable)&mc=4411&am=amount&tn=note

Now set activity starter result name = response

You can set all such things on button click or on screen initialize.

To start activity we will use button.

Now once activity is completed it’s time to check result .

So i am using block
After activity result .
first i use for each item & split text block to get payment status details …Because the result contains to many things like response code , transaction id , payment status etc.

Then i use local variable to split the result then i use if then block to check if the split item is status & if its true then i show the result on label 3.

I hope you all like the tutorial & i am able to explain you all the blocks.

Note:- This app completely works with
Google Pay
Phone Pe
Paytm Upi
Airtel Pay …

Not working with
Amazon Pay

Thanks…

Not Providing Aia because I want you all to learn yourself

You Can do it without using UPI Component & Extension…

8 Likes

Nice guide @Alapjeet_Singh this will help many people

4 Likes

@Alapjeet_Singh Amazing Extension :heart_eyes: :heart_eyes:
Thank you Three Thousand Times :heart_eyes: :heart_eyes:

3 Likes

It’s not an extension…
Just activity starter…
Nothing else… By the way thanks for appreciation…

2 Likes

Thanks…
It really great to see that you like it…

2 Likes

Best guide ever for payment without any extension loved it :heart:

3 Likes

Extension this is a component named activity starter not a extension

3 Likes

Thanks @Yash for appreciation…
:relaxed:

3 Likes

Nice Guide @Alapjeet_Singh keep it up.

3 Likes

Thanks @VSATISH13 :relaxed: for appreciation

3 Likes

you’re doing great job :heart_eyes:

3 Likes

thanks buddy @Developer

2 Likes

Payment Cancel or payment success not show
using phone pay ( paytm ok )

5 Likes

I’m not understanding url can you explain in deeply

Sorry. Google Pay & Phone Pe changed their deep links so that’s why … I got the solution will update soon …

2 Likes

Not working for me,

2 Likes

it wont work anyone i guess,

2 Likes

This Isn’t Work for Me. I tried But got no Result. Please Update this Method.