PayclaveDocs

Payclave developers

Security

Protect secrets, authorize orders, verify webhooks, and respond to leaked credentials.

Protect the order and its credentials

Your server owns order authorization, pricing, and fulfillment. Authenticate the customer and load an order they may pay before creating checkout. Calculate its total from stored prices. A checkout URL, browser redirect, wallet signature, or transaction submission alone must never grant access to goods or services.

Store secret API keys and webhook signing secrets in server-side secret configuration. Keep separate credentials for development and production. Use publishable keys in browser and mobile code, and restricted keys for merchant MCP. App binaries, public environment variables, URLs, analytics events, screenshots, and support messages must not contain secrets.

Verify before fulfillment

Verify the webhook signature and timestamp against the raw request body. Persist event acceptance and the fulfillment job durably, then deduplicate both event IDs and order fulfillment. Match merchant, mode, invoice identity, and the stored commercial total before granting access. A confirmed partial payment does not cover a whole invoice.

Payclave verifies chain, token contract, recipient, transaction identity, amount, and finality independently. Your integration must still match that payment to the correct order. Customer credit and merchant settlement are different amounts because standard hosted payments include a platform fee.

Configure destinations and return URLs

Use a merchant-controlled settlement wallet on a supported network. Confirm its address and token before accepting live payments. Existing issued invoices and checkout sessions keep their original settlement snapshot when a default wallet changes. Protect dashboard wallet changes with your account's authentication controls.

Use HTTPS return URLs on the reviewed website origin you control. Treat externalReference, metadata, customer names, and error text as untrusted input when displaying or processing them. Keep private customer details and payment URLs out of public logs. Public invoice tokens grant access to a customer-facing invoice; share them only with the intended recipient.

Respond to a leaked credential

Revoke the affected key in its original test or live dashboard mode, replace it in server configuration, and review recent checkout, invoice, and webhook activity. Stop any agent process that inherited the credential. Rotate a leaked webhook secret and deploy the matching verifier before replaying failed deliveries.

Report product security issues to security@payclave.com with the affected route, a redacted reproduction, mode, and request IDs. Do not send private keys, recovery phrases, API keys, or webhook secrets.

Where the money goes

A Payclave payment moves from the customer's wallet to the merchant's settlement wallet. For standard live checkout payments, execution sends the merchant's net settlement to the merchant's wallet and Payclave's 0.7% platform fee to a separate fee wallet in the same payment. Standard x402 USDC payments go directly to the merchant without a Payclave platform fee. Payclave does not keep pooled or intermediary accounts for merchant settlement, and there is no later payout step.

Payclave never holds or controls customer payments or merchant settlement, and it never stores or has access to private keys. Merchants are responsible for their settlement wallet, including its keys and recovery credentials. Payclave cannot access, freeze, or reverse funds after settlement.

Connected-wallet payments

When a customer connects a wallet, the customer reviews and signs the transaction in that wallet. Payclave never receives the customer's keys or signing authority. If the customer pays with a different token or network, the payment route converts it so the merchant receives the configured settlement token on the selected supported network.

Scan or copy payments

Scan or copy gives the customer one-time deposit instructions for a single checkout. The checkout address is created for that payment route, and the route delivers the settlement token to the merchant's configured settlement wallet. Payclave does not hold the keys to these addresses.

Customers must send the exact token, amount, and network shown before the checkout expires. Payclave cannot reverse an onchain transaction after confirmation and does not guarantee recovery of mistaken transfers. Refunds, store credit, and order decisions belong to the merchant under its own policies.

Independent onchain verification

Payclave marks an invoice paid only after it verifies the settlement onchain. The browser and the payment route are never trusted on their own. Verification checks the transaction hash, recipient wallet, token contract, chain ID, amount received, invoice expiry, confirmation and finality, duplicate transaction use, underpayment, and overpayment.

Signed webhooks

Every webhook carries X-Payclave-Signature, X-Payclave-Timestamp, X-Payclave-Delivery, and X-Payclave-Event headers. The signature is an HMAC SHA-256 over the timestamp, a period, and the exact raw request body, using the endpoint's signing secret. Merchants should verify it in constant time, reject stale timestamps, and deduplicate deliveries before fulfilling an order.

API keys, test mode, and accounts

Secret keys (sk_test_* and sk_live_*) belong only on the merchant's server. Publishable keys (pk_test_* and pk_live_*) can create and read checkout sessions with a limited set of fields. Test mode and live mode use separate keys and separate records, so test activity never mixes with live payments.

Dashboard passwords are hashed with Argon2id, and sessions are stored server-side behind an opaque session token. Live settlement wallet changes can require extra verification or review before they take effect.

Report a security issue

Send security reports to security@payclave.com with the affected page, endpoint, or integration and steps to reproduce. Do not include private keys, wallet recovery phrases, secret API keys, or webhook signing secrets. Payclave publishes a security.txt file with its current contact details.

On this page