vaulted_token. The full reason and usage matrix is on Stored credentials.
Customer Initiated Transaction (CIT)
On the CIT, sendvault_on_success: true and place stored_credentials under detail.wallet, because the payment method is still the wallet at this point:
vault_on_success: true: Vaults the decrypted card as aCARDrecord withparent_payment_method_type: GOOGLE_PAYand returns itsvaulted_tokenin the payment response.customer_payer.idmust reference an existing customer (create it first with Create Customer). Without it the payment still succeeds but nothing is vaulted: the response carries an emptyvaulted_tokenand no error.detail.wallet.stored_credentials.usage: "FIRST": Marks the first transaction of the recurring series. Yuno stores thenetwork_transaction_idreturned by the provider on the saved record.
The
vaulted_token is returned only in the CIT payment response. Wallet-vaulted instruments are intentionally not included in Retrieve Enrolled Payment Methods, so store the token on your side when the CIT succeeds.Merchant Initiated Transaction (MIT)
Subsequent charges use thevaulted_token as a stored card. No Google Pay token and no checkout session are needed:
vaulted_token: The token returned in the CIT response.detail.card.stored_credentials.usage: "USED": Marks a subsequent transaction in the series. Yuno attaches thenetwork_transaction_idfrom the CIT automatically.