Choose a fixed-price link, a hosted session for a live quote, or an API payment. Match it to the payer and verify that the buyer receives what they bought.
A captioning studio could sell a downloadable caption style pack, a custom captioning job, and an API that checks whether a caption file meets a delivery specification. Imagine an agent buying all three. It needs a link to the style pack, a place for its user to approve the captioning quote, and a client that can pay for the API call and receive the validation report. The studio could take payment for all three and still leave each buyer waiting for something different.
A payment link suits a preset offer whose terms apply to every buyer. A hosted Checkout Session suits a purchase whose terms come from a cart or quote calculated on the merchant's server. API Payments suits a client that buys work or access through a request and expects the result in its application. After picking the surface, check what the intended payer can actually use. GOAT Flow offers examples of all three through QuickPay, Checkout, and API Payments. The enabled methods depend on the merchant, product, and deployment. GOAT Flow's merchant payment surfaces
A fixed offer can keep one payment link
Suppose the style pack includes templates and presets that are the same for every buyer. The studio can configure a fixed-price QuickPay product and share its hosted payment link with an agent or a person. The GOAT Flow Checkout guide also documents opening the configured product by passing the merchant and product key. The hosted flow resolves the price from the product record and shows the rails enabled for that product. A fixed product can open without a merchant backend creating a new Checkout Session for each buyer. The studio still needs a reliable way to verify the purchase and deliver the pack.
Decide what the link promises before sharing it. Include the edition of the pack, what can be downloaded, and the support or delivery details needed to use it. A public offer can be reused by different buyers. Each payment and entitlement still belongs to a particular purchase. If the studio later adds an editable source bundle, give it a distinct product key or route the upgrade through a priced checkout. Changing the deliverable behind the original link makes it harder for a buyer who found an old listing to tell what they are paying for.
A fixed offer works across interactions only where the payer can use the URL. Try opening the merchant's actual hosted product link in the intended buyer environment. Check any handoff to a normal browser and make sure the payer can finish with an enabled wallet or card. If a person must sign or confirm, the agent can pause and present the link and the terms for consent. An agent that only makes HTTP tool calls will need an explicitly supported purchase interface or a human handoff to use a browser-led flow. Testing from the target client can reveal handoff failures that the studio's browser never encounters.
Keep the product price authoritative when matching the payment to access. For instance, if the buyer returns after the product price changes, use the terms from the actual purchase when deciding what to deliver. GOAT Flow also documents a custom-amount flow for payments in which the buyer supplies an amount. Use that flow for transactions such as tips where the buyer is meant to choose the price. For the style pack, automatic release should require the configured offer and a verified payment for its terms.
The studio can have a purchase page show a pending state after the buyer returns and update it when the backend has matched the confirmed order to the pack. Release access to the intended buyer or an authorized recipient once. Save the redemption state separately from the payment so that a support request for a missing download can restore access against the existing purchase. Test the download itself, including what the buyer sees when the delivery link has to be renewed.
The offer link may be shared widely, so give the order its own way to associate a payer with a recipient. A wallet address can help identify the transfer. The studio still needs a way to tell who should receive the file, especially when a buyer pays from a wallet the agent controls. A private claim flow or a delivery address collected for the order can supply that association. Avoid letting possession of the shared offer URL unlock a previous buyer's pack.
A quote needs its own Checkout Session
A custom captioning job depends on the footage length, requested languages, turnaround, and whether a transcript already exists. The agent may gather those details, but the studio's backend should calculate the total. Save the quote version and present its scope and any expiry to the buyer. If the buyer adds a second language, price and confirm the revised quote before creating its payable session. Reusing the style-pack link for a buyer-entered total would lose the calculated terms and the reference support needs to identify the job.
In the documented GOAT Flow Checkout integration, the merchant backend creates the session through the authenticated API. Keep the merchant API key and HMAC signing secret on that backend. Store the returned checkoutId and URL with the studio's quote or order reference. The agent or browser uses the hosted session handle to open the payment page. Treat that handle as a bearer capability and share it through the intended buyer path. Give the buyer the quote details they need for approval and keep internal notes and credentials out of public metadata.
Price each offered rail explicitly. The GOAT Flow guide documents fiat fields for a card session and a separate crypto price when a merchant enables both options. It also uses checkoutType: 'DIRECT' to choose the checkout subsystem. For that session type, paymentRails can still select fiat. The order backend should reconcile the rail-specific result against the amount and asset or currency the buyer authorized. For a card payer, a hosted session can collect payment without a crypto wallet. A stablecoin payer needs a compatible wallet and the funds required by the supported network.
Session creation is a point where a network failure can change what the studio knows. If the create call succeeds but the response times out, calling again with the same nonempty clientReferenceId can return a conflict. The documented server SDK has no lookup by that reference, and the conflict response does not recover the original handle. Keep the studio's intent reference and reconcile the original request with merchant records or deployment support before issuing a replacement. A new payable URL for the same quote could leave two ways to pay for one job.
Quote expiry and payment status also need separate checks. A buyer may have started payment just before the quote expired. Resolve the status of that session and its associated payment before quoting the job again. Keep a confirmed payment linked to the scope the buyer originally approved. If no payment cleared and the studio can no longer meet the promised turnaround, give the buyer updated terms and obtain fresh approval before opening another payable session. An agent should be able to tell which quote it can still act on.
After payment, the buyer can see an accepted job with an agreed scope and a way to check delivery progress. The studio can start production after its backend verifies the linked order at the expected terms. Its business order needs a separate state for each relevant event, such as the job entering production and the finished caption files becoming available. The buyer who returns after paying should be able to tell when the studio has the payment, when the work is underway, and where to retrieve the result. A new quote for additional work should reference the existing job while keeping the additional payment separately auditable.
The validation result is the paid resource
The studio's validation API can sell one check of a caption file against a specified format. The result might identify overlapping time ranges or a misformatted timestamp. An agent using that result in an editing pipeline needs to pay and obtain the validation output in its client. Opening a general-purpose checkout for each validation would leave it to correlate a separate browser action with the exact submitted file and requested checks. A paid route can tie the payment flow to the request if the client supports the route's protocol.
Price and communicate the unit of work. For example, the studio could sell one validation report per submitted file within a documented size limit. A validation that flags an error in the captions has delivered the purchased result. An expired challenge or a service outage before any report is generated has a different resolution. Publish a supported route and identify which terms come from its manifest and which come from the fresh payment challenge. The studio can check eligibility and reject an oversized input before collecting payment for it.
A service implementing x402 can issue payment requirements with an HTTP 402 response. A compatible buyer supplies a signed payment payload with a retry, and the protected service follows its verification and settlement flow before serving the result. Machine Payments Protocol (MPP) also defines an HTTP flow with a challenge and a credentialed retry. The meaning of a 402 depends on the contract used at that endpoint. Have the buyer use a client built for that contract and the advertised method.
In GOAT Flow's documented MPP integration profile, the client obtains route information from the trusted merchant manifest and requests a fresh challenge at POST /mpp/v1/challenge. The response provides the chain, token contract, recipient, amount, and expiration for the transfer. The buyer checks those terms against its authorization and makes one DIRECT ERC-20 transfer to the configured merchant recipient. It then calls POST /mpp/v1/verify with the preserved challenge ID, transaction hash, payer address, and challenge MAC. The successful verification response includes a signed Payment-Receipt header, which the client presents to the protected resource. The separate JSON endpoints and receipt encoding are specific to the GOAT Flow profile. Verify adapter compatibility before using a client written for another MPP implementation. GOAT Flow's documented MPP profile and recovery procedure
On the studio's side, validate the receipt signature, its merchant audience, the allowed route binding and expiry before returning the report. GOAT Flow's documented middleware checks receipt consumption when a receipt-ID store is configured. Use a shared atomic store if multiple instances must enforce single use. If the receipt binds to a route shared by several checks, the studio still needs an application rule for matching a redemption to the authorized file and report. Define which request ID and caller can recover that output in advance.
Payment verification and report delivery can fail independently. A verification response of 202 or 429 in this GOAT Flow profile calls for bounded retries on the original challenge and transaction, respecting the documented backoff. A network failure after broadcast is a reason to preserve the transfer references and resume verification. Once verification succeeds, the studio has a second recovery obligation. If it consumes a one-use receipt and the client disconnects before receiving the report, keep the produced result tied to the original authorized request. Provide an authenticated way for that buyer to recover it without treating the receipt as permission to run a fresh job.
The service needs a state for redemption in progress as well as one for a report ready to retrieve. If it claims a receipt and crashes during processing, the studio can use its saved request record to resume the authorized validation under the same job identity or surface an exception for that purchase. Where the file contents can change between attempts, associate the paid job with the accepted input version. Recovery should return the report for that version even if the editing pipeline has already produced a new file.
The payer still has to complete the chosen path
For either hosted option, inspect the actual URL and product or session on the deployment the buyer will use. Confirm the allowed checkout and return origins. Check whether the agent can open the page, how it returns control to the shopper where required, and how it resumes after payment or cancellation. A publicly shareable link for a fixed product and an opaque URL tied to a quote both lead to a payment surface. The fixed link can stay published between purchases. The quote URL should stay with its intended buyer and order.
A rail describes how funds move. GOAT Flow documents Stripe-processed card payments for eligible merchants on hosted surfaces and DIRECT transfers to merchant-configured recipients on the public crypto path. Confirm which rails the active product or session offers. For a stablecoin payment, check the allowed token contract and network together, plus the payer's token balance and any native gas it needs to submit the transfer. For a card payment, verify whether the expected buyer can complete the provider's confirmation steps. Track the provider confirmation for the card order and the verified transfer for the crypto order.
An agent acting for a shopper needs the authority that its integration requires. A supported delegated card flow may use a scoped credential such as a Stripe Shared Payment Token. A hosted card form still requires the buyer interaction supported by that page. A wallet client should check the permitted merchant or recipient, amount, network, asset, and expiry before signing. Set limits outside the model's discretion so an unreliable price quote or repeated attempt cannot expand its spending authority. Keep payment credentials and keys in the appropriate provider or wallet system.
An HTTP protocol specifies how the client and seller convey payment requirements and evidence. Its permitted methods depend on the implementation. Stripe's machine payment documentation includes MPP profiles for card and stablecoin payments and an x402 profile for stablecoin payments. GOAT Flow's documented MPP profile uses the direct ERC-20 sequence above. The merchant should test the exact client and route together in their intended environment, including what the client does when the selected asset is unavailable or the spending policy denies it. That test decides whether the buyer can complete one branch or needs a different authorized path.
Check what the buyer can recover
Choose a completion signal for each product before accepting payment. A successful hosted redirect can move the buyer interface into a checking state. Release from that state based on a trusted backend result. GOAT Flow's Merchant API documents authenticated order lookup with the order identifier. For a linked order, its documented successful terminal states include PAYMENT_CONFIRMED and INVOICED. Keep the order identifier and payment details separate from the Checkout Session handle. Match the trusted confirmation to the intended purchase and its rail-specific terms. Use a webhook for release only when its authentication and payload contract are established for the deployment.
For the style pack, complete the check when the right buyer can open and download the correct edition. Repeat a confirmation to see whether the entitlement stays tied to one purchase. For the captioning quote, follow one authorized total from the saved quote through the payment result, job acknowledgment, and access to the delivered caption files. Include a pending state for work still in progress. The buyer who opens the return URL again should be able to learn the job's status without repeating payment.
For the API, the successful path ends when the client receives the validation report for the submitted file. Exercise a submitted transfer whose verification is still pending, a valid receipt presented to the wrong route, and a lost response after the merchant has recorded delivery. The client needs a bounded way to resume verification or recover its report. A fresh charge belongs to a new authorized request.
Use the buyer's final interaction as the acceptance test. After the redirect closes or the payment request completes, can the buyer return to the same purchase, obtain the exact deliverable, and see a recoverable status when delivery is still pending? Keep a reference the buyer can use to resume that purchase or give to support.
FAQ
Can I offer a card fallback on the same payment link?
An eligible GOAT Flow QuickPay product or hosted Checkout Session can offer card alongside its configured crypto option. Check the product or session settings and the capabilities of the actual payer. A card fallback for the hosted page follows that page's provider flow. The GOAT Flow MPP route described here uses an ERC-20 transfer.
Which credentials should the agent receive?
Give the agent the buyer-side URL or the route information and signed receipt it needs for the chosen interface. Keep merchant HMAC credentials and receipt signing secrets on the backend that uses them. The payer's wallet or supported payment provider should handle the buyer's payment credentials.
What happens if the buyer changes an approved quote?
Price and confirm the change as a distinct revision. Reconcile any existing payable session or payment before collecting the revised amount. If the change is an add-on to work the buyer already paid for, record the original purchase and connect the additional authorized charge to the job.



