Google Pay whoami
Report which Google account this browser uses on Google Pay (email and name) and whether it has a Google Pay payments profile — without one, Google Pay sends the account to its sign-up page and Google Pay scripts have nothing to read. Being signed out of Google is reported as a normal answer (loggedIn false), not an error.
Input
None
Output
loggedIn requiredname optionalemail optionalhasPaymentsProfile optionalfalse when Google Pay sends the account to its sign-up page (no payments profile yet), so Google Pay scripts cannot read anything
FAQ
Download a Google Payments invoice (Google One, YouTube, Google Play)
Download the invoice PDF of one Google charge, such as a Google One or Google AI plan, YouTube Premium, or a Google Play purchase (pay.google.com > Activity > Transaction details > Download tax invoice). Pass the row's transaction label as returned by pay.google.com/list_transactions (e.g. "12 Mar · 100 GB (Google One)"); the first (newest) matching row wins. Returns Google's filename and the path where the browser saved the PDF (or a url to it on a managed browser), so you can read or move it directly.
List Google Payments activity (Google One, YouTube, Google Play charges)
List the signed-in Google account's payments activity (pay.google.com > Activity): every Google charge, such as Google One storage and Google AI plans, YouTube Premium, and Google Play purchases and subscriptions. One row per transaction with merchant, transaction label (e.g. "12 Mar · 100 GB (Google One)") and amount, newest first. The transaction label is the join key for pay.google.com/download_tax_invoice, which downloads that charge's invoice. Scrolls until max rows or the list runs out.
