How to integrate Google pay UPI payment with react native

In this smartphone era, most users trust Google Pay UPI payment because everybody doesn’t want to share or remember 16 digit numbers of cards and pin. That’s why, according to security purposes Google pay is the best app for instant payment. As per the increase in the demand for Google pay, all eCommerce mobile applications want to integrate Google pay UPI  so users can pay easily without any hassle. So, today with help of this article describing how we can integrate Google pay UPI payment in react native mobile application so let’s begin:

In my experience, there are very limited resources on the internet for react native apps. So I am sharing how we can integrate it with a simple method. I have done this job with the help of  react-native-upi-pay.

 

This library will accept googlepay, phonepe and paytm UPI payments. so you can use them if you needs them.

For installation you need to run this command in your terminal

and then link to react-native app with this command

Now this plugin is ready for use. You can add this code in your component like that.

After hit this code you can see UPI payment apps show in popup and redirecting after click on google pay icon.

This code return success and failure status for show the messages. The result will show in your terminal like that.

Add a Comment

Your email address will not be published. Required fields are marked *