Webhook Confirmations
View .mdOpen in ClaudeOpen in ChatGPT

Webhook Confirmations

Elements callbacks keep the browser moving. Signed webhooks let your backend reconcile links after tabs close, mobile WebViews background, or networks drop. Card storage returns a method identifier but no webhook. Sandbox Pay simulations exercise the full event contract; production execution remains gated.

Callbacks are UX signals

Never fulfill from a browser callback alone

onSuccess, redirect URLs, and hosted-page completion screens run in user-controlled clients. Use them to update UI and send identifiers to your server, but verify signatures and dedupe webhook event IDs before changing durable server state.

Confirmation paths by flow

FlowBrowser signalDurable confirmationWebhook types
Interactive ConnectonSuccess(public_token)Your server exchanges the public token, then reconcile link.completed. connection.ready and bill.created confirm the first retrieval.
link.completedconnection.readybill.created
Hosted/background ConnectHosted page completion or redirectUse link_token.completed as the durable server-side confirmation that BillerAPI completed the background exchange and created the link.
link_token.completedconnection.readybill.created
Add CardonSuccess(payment_method_id)No money moves and no payment webhook is emitted for card storage. Persist the payment_method_id server-side; it cannot currently be used to execute a bill payment.No payment webhook
Sandbox Pay REST201 synthetic attemptReconcile the attempt from pay.scheduled through one terminal pay.* event. No real money moves.
pay.scheduledpay.succeededpay.failedpay.escalated
Production Pay (gated)501 PAYMENT_EXECUTION_NOT_AVAILABLENo production payment attempt is created while real execution is gated.No payment webhook

Connect reconciliation

Interactive Connect returns a public_token to the browser so your backend can exchange it. Background Connect does the exchange inside BillerAPI and emits link_token.completed. In both paths, wait for signed link and bill webhooks before assuming bill data is ready.

Ready is separate from linked

link.completed means the link exists.connection.ready and bill.created tell you the first bill retrieval has produced usable data.

Add Card reconciliation

Add Card returns a tokenized payment_method_id plus display-safe metadata. That is a stored method, not a paid bill. Because there is no payment attempt, BillerAPI does not emit a pay.* webhook for Add Card by itself.

Do not infer money movement

Store the payment_method_id for later use, but do not infer money movement or build fulfillment around unavailable Pay events.

Pay outcome contract

pay.scheduled

A sandbox synthetic attempt entered processing; reserved for production launch.

pay.succeeded

The sandbox synthetic attempt reached its paid outcome; reserved for production launch.

pay.failed

The sandbox synthetic attempt reached its failed outcome; reserved for production launch.

pay.escalated

The sandbox synthetic attempt needs human review; reserved for production launch.

Sandbox simulates; production is gated

Sandbox initiation creates a fake attempt and emits the listed pay.* events through sandbox webhook subscriptions. Production initiation returns 501 PAYMENT_EXECUTION_NOT_AVAILABLE until real payment execution is enabled.

Related

Was this page helpful?