Enhancing Android Checkout with Dynamic Callbacks in Google Pay
Blog post from Google Cloud
Express checkout with Google Pay for Android native apps allows developers to utilize users' stored credentials from Google Wallet to simplify the checkout process. The implementation introduces dynamic callbacks such as onPaymentDataChanged and onPaymentAuthorized, enabling developers to update shipping options, taxes, and total prices dynamically within the Google Pay sheet without closing it. This feature is available from play-services-wallet:20.0.0 onwards and facilitates an "Express Checkout" experience by moving the Google Pay button to Product Detail or Cart pages, thereby improving conversion rates. Developers can handle transaction authorization and retries directly within the Google Pay interface, enhancing the checkout funnel by providing real-time updates on shipping and tax information based on user interactions. Dynamic callbacks align the Android Google Pay developer platform with its web capabilities, offering a streamlined, accurate, and efficient payment experience.