Text the add-a-card link
Create a vault session on your server and send itsurl in the conversation, worded however your agent talks.
user_id you receive to that phone number. Sessions last 24 hours by default; if the user comes back later, create a new one rather than resending an old link.
If you would rather not build the message, have Agentcard deliver it. POST /api/v2/checkout/vault_link texts or emails a connected user their link from Agentcard.
Text the approval link
When your agent reaches the payment form,onApprovalUrl fires with a link. Text it with what the user is approving:
checkout_authorization.expired.
Send through a provider
If your agent texts through an iMessage provider, the link is the message body and nothing more. Two providers, same message:Confirm with webhooks
The user saying “done” is a claim. The webhook is the fact:vault.session_linkedcarries theuser_idto bind to the phone number.vault.card_storedwhen the card lands in the vault.checkout_authorization.approved,checkout_authorization.declinedandcheckout_authorization.expiredfor each purchase.
status is linked.