简体   繁体   中英

How to get the price paid for Android In-app Billing?

The Android In-app Billing Overview states

"When the checkout process is complete, the service sends your application the purchase details, such as the order number, the order date and time, and the price paid ."

However, it doesn't appear there is a parameter for price paid in the PURCHASE_STATE_CHANGED notification . Am I missing something? Does anyone know how to get the total price of a purchase at runtime?

The documentation is probably out of sync with the current implementation. There is unfortunately no API to get the price of IAB items, and I the PURCHASE_STATE_CHANGED JSON didn't include such a field last time I checked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM