Payclave developers
Marketplace payments
Recipient grants, direct-wallet allocations, partial payments, and cancellation.
Collect directly for multiple recipients
Marketplace collection is opt-in and available only to enabled merchants. It groups 2–10 distinct recipient merchants into a Payclave-hosted collection. Each recipient authorizes a grant and chooses a merchant-controlled wallet. All allocations must use the same supported chain and token.
The customer pays the constituent hosted checkout steps separately. These transfers are not atomic: some recipients can be paid while others are still unpaid. Funds never pass through a pooled marketplace wallet, and the issuer must not fulfill a whole order merely because its first recipient was paid.
Create and track a collection
List the grants available to the issuer and key mode. Create an order with a stable requestKey, expiry, and 2–10 grantId/amount allocations. Use positive decimal gross amounts with up to six fractional digits and one allocation per recipient. Reuse the identical requestKey and body after a timeout.
Save the returned order ID, payerUrl, and allocation snapshots. Read the order's verified child credits and wait for marketplace.paid when every recipient has been credited. Match the issuer, mode, order, and expected allocation facts before fulfillment.
Handle partial collection and cancellation
If recoveryRequired is returned after accepted partial credit, the original collection closes and the remaining obligation needs merchant review. Preserve the child payment records and decide how to resolve the unpaid part with the customer. Do not start a new full-value collection while ignoring the credits already received.
Cancelling an order stops unpaid recipients from collecting through it. It does not reverse payments or refund any recipient. Each recipient controls any refund from their own wallet. Existing verified credits remain in the records.