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
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With