Store for each purchase
Get the approval when your browser worker is ready
The placeholder card works for about one hour after the buyer approves. Start the browser worker first. Then send the buyer the approval link. See Get the placeholder card.Compare the right values
Know if the card was sent
Only the transaction tells you if the card was sent. Read it after any failure.
Do not mark a purchase as sent in your own records before the transaction reads
payment_submitted or order.outcome: confirmed. A read shows the current state only. A UCP order can be confirmed before your agent sees payment_submitted. A failure before your worker submits the form does not send the card. Do not record it as uncertain.
Fill the card with code
Fill the card fields with your browser driver. Keep placeholder values out of your AI model’s prompt and out of logs. See Fill the card fields.Recover
All other cases are in Recover without buying twice.
Test before you go live
Make the purchases in Sandbox with the test card. Test these failures too:- Stop the browser session after the approval and before you submit. Your agent must read
payment_readyand pay in a new session. - Wait more than one hour after the approval. Your agent must read
payment_ended, cancel, and create a new transaction.