nitish24p / react-native-upi

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

who is sender and recipient ? #4

Closed cullsin closed 5 years ago

cullsin commented 5 years ago

Hi,

It works awesome. Can you please suggest me how do I transfer the amount between two users? sender and receiver?

Can you please suggest me.

Raja K

nitish24p commented 5 years ago

So user 1 has to know the upi id of user 2 Assume user 1 ===SEND MONEY TO===> User 2


RNUpiPayment.initializePayment({
  vpa: 'john@upi', // user 2 upi handle
  payeeName: 'John Doe', // name of user 2
  amount: '1', // amount to transfer
  transactionRef: 'aasf-332-aoei-fn' // some transaction id that you will identify with your Backend
}, successCallback, failureCallback);
cullsin commented 5 years ago

Hello, Sorry. I did not understand. In which account money will deduct and which account it receive.

cullsin commented 5 years ago

Do I need any prerrquest about the sender?

nitish24p commented 5 years ago

Money will get deducted from user 1 and go to user 2

cullsin commented 5 years ago

Thanks. Can you give example of sender as well as receiver UPI. In the RN initalize, the UPi key is sender or receiver?

cullsin commented 5 years ago

I can see only one UPi. Where is the other one? Can you share your screenshot demo.