Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add any merchant account in Google wallet Android API?

I'm working on Android Google wallet API, so here I want to know if this kind of flow/process is possible or not.

Also 1 more thing that I want to know is: where to set merchant account ID in my code?

I go through the wallet doc & sample app code, in that I found one method called getMerchantTrasactionId() and setMerchantTrasactionId(), but I'm not sure what is the purpose of this method?

Also I want to know how to bind merchant account in my app?

For more clerification please see this pic

enter image description here

like image 809
Rajan Avatar asked Aug 21 '14 15:08

Rajan


People also ask

Can I integrate Google Pay in my app?

If your Android application is distributed through the Google Play store, you can integrate it with the Google Pay API. You can also configure it to accept payment cards.


1 Answers

Here, you need to deploy your server as well.

1) App launches 2) App asks for employerId/employeeId, typeOfUser(e.g..dummyX, dummyY) and sends to Server

Case A : typeOfUser is a employer (Mr X) - server sends merchantID of Mr.A which, which then is used for in-app billing to unlock the level1 for two ids.This should return some transactionId and payment is sent to Mr X, account - Then, send the transactionID (that just recieved ), employerId (of Mr. X) and two employeesID(for Y and Z) and google merchantId (of Mr. X, provided Mr.X has valid google wallet account). - This information will be saved on server in mySQL Db.It would be used in case B , below.

Case B : typeOfUser is a employee (Mr Y or Mr Z) - Server checks the employeeID, if its linked to any of the valid employerId. - If yes, then it returns merchantID of employer (Mr. X), which is then used to make all google in-app purchasing.Hence, all these purchasing transactions are credited to Mr.X account.

I hope this gives whats is expected. Going for weekend party.Let me know, if any confusions.I would be happy to help later.

like image 98
sandeep gupta Avatar answered Oct 06 '22 01:10

sandeep gupta