nitish24p / react-native-upi

A tiny module for Adding payments via UPI in your react native apps ❤️
MIT License
72 stars 29 forks source link

Feature: Custom payment app selection #29

Open jaiminbhut opened 3 years ago

jaiminbhut commented 3 years ago

I have add a new feature the helps developers to select specific app for payment.

For example, if I only need my users payment through GPay I pass one extra param tez in initializePayment method.

RNUpiPayment.initializePayment({
  vpa: 'john@upi', // or can be john@ybl or mobileNo@upi
  payeeName: 'John Doe',
  amount: '1',
  transactionRef: 'aasf-332-aoei-fn'
}, successCallback, failureCallback,'tez');

So whenever initializePayment method will call only GPay application will open. if app not found then it's returns system message for me it's return No apps can perform this action.