Our application (an expenses manager) would like to extract the transaction history from Android Pay in order to make it easier for the user to enter their purchase history. Is this possible - either through an Android app on the same phone where the purchases were made or through an external API?
I've found plenty of information on how to integrate Android Pay payments from within the app, but nothing on how to access the previous transactions.
What is a payment API? A payment API is an API (application programming interface) that enables ecommerce businesses to seamlessly manage payments. Payment APIs have the power to optimize the payments process for both businesses and shoppers, as they can make transactions faster and more secure.
Unfortunately, it looks like this is not possible via any API at this moment. It is probably made for security purposes.
The only way to view the transaction history is by:
Android Pay
app.But there might be a workaround, though remember that you are responsible for your actions.
AccessibilityService
AccessibilityEvent
(for example focus on element) using onAccessibilityEvent()
Android Pay
app.getText()
method of an AccessibilityEvent
Intent
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