POST /payments
PlannedPayment requests
Create a payment for an amount and currency, then follow it through clear states: created, awaiting payment, detected, confirming, settled, expired or failed.
Developers
We're designing MyCloudPayments for developers first: predictable resources, clear errors, strong signing and a sandbox to build against before anything goes live.
No endpoints are available yet. Everything on this page is planned.
Create a payment
// Your server
const payment = await mcp.payments.create({
amount: "49.00",
currency: "USD",
description: "Invoice 1042",
webhook: "https://your-app.example/hooks",
}, { idempotencyKey: "inv-1042" });
redirect(payment.checkout_url);Receive a webhook
POST /hooks
MCP-Signature: t=1733356800,v1=5f2c…
{
"type": "payment.settled",
"data": { "id": "pay_7Hq2…", "amount": "49.00", "currency": "USD" }
}Verify it
// Reject anything not signed by us
const event = mcp.webhooks.verify(
rawBody,
headers["mcp-signature"],
process.env.MCP_WEBHOOK_SECRET,
);
if (event.type === "payment.settled") {
await releaseOrder(event.data.id);
}Illustrative only. Names are examples and may change before the sandbox opens.
POST /payments
PlannedCreate a payment for an amount and currency, then follow it through clear states: created, awaiting payment, detected, confirming, settled, expired or failed.
checkout_url
PlannedSend customers to a hosted page that handles currency choice and wallet instructions, then returns them to your site.
MCP-Signature
PlannedEvery event is signed so you can verify it came from us, with replay protection and safe retries.
Idempotency-Key
PlannedRetry safely after a timeout without creating duplicate payments.
mcp_test_… / mcp_live_…
PlannedKeys limited to what each service needs, kept separate for test and live, and revocable at any time.
sandbox
PlannedMock payments and test networks only. Sandbox assets have no value and never move real money.
Key prefixes and header names are examples; they may change.
Join the waitlist as a developer. We'll invite people from the list to try the sandbox when it opens and ask for feedback on the design.