问题
I'm wondering if there is any API available for getting order details from Google Wallet. Details are available in Walelt Merchant Center UI - under Orders and also it can be downlaoded as a report for given timeframe. However, I wasn't able to find any API which can be used for similar purposes. Is it available?
回答1:
Unfortunately, it doesn't look like order details are explicitly available via the Google Wallet API. From the FAQ:
What is the Google Wallet for Digital Goods API?
It's a way to let customers make simple payments without leaving your web app.
Also, the API documentation references the Merchant Center in How-to Guides > Managing Orders and provides no way of obtaining this data via the API.
Google Wallet for Digital Goods orders are charged automatically and you can view processed orders using the Merchant Center, an online interface that allows you to manage orders placed through the Google Wallet for Digital Goods API.
Through the Merchant Center you can:
- Cancel orders
- Refund orders
- Review your payout information
- Generate and download reports
The Google Wallet API does state:
Note: If you're developing an Android app, you should instead use Google Play In-app billing.
It's possible the the In-app Billing API (getPurchases() method?) may have more available in terms of order details than the Google Wallet API.
来源:https://stackoverflow.com/questions/26343611/google-wallet-order-details-api