Google

Enhancing Android Checkout with Dynamic Callbacks in Google Pay- Google Developers Blog

May 26, 2026Dominik Mengelt, Nik Heath
Enhancing Android Checkout with Dynamic Callbacks in Google Pay- Google Developers Blog
SummaryAI, from the source post

This post introduces the implementation of dynamic callbacks (`onPaymentDataChanged` and `onPaymentAuthorized`) for Google Pay on Android native apps, mirroring existing web capabilities. It details how to extend `BasePaymentDataCallbacks` and `BasePaymentDataCallbacksService` to handle real-time updates to shipping options, taxes, and total prices based on user interactions within the Google Pay sheet. It also covers handling authorization feedback and retries directly within the sheet. The post provides code examples in Kotlin and XML manifest updates, and highlights the benefits of reduced friction, increased accuracy, and improved authorization handling.

More from the Google Checkout API and Payment Processing trail