. , Coin Moebius qlhlu'bogh webhook JSON . UI , checkout yIqlh , - Coin Moebius ( Authorize.Net , , server- script, mobile ), qlhlu'laH. .
server
server'a'lIjvo' projectlIj API key token- . key , projectlIj API keys (cmk_ ), Authorization header- :
Authorization: Bearer cmk_live_xxxxxxxxxxxxxxxxxxxxxxxx projectDaq key , limit . key . server'a'lIjDaq key . client- .
projectlIj URL . base https://api.coinmoebius.com. URL ({…} - ).
| Endpoint | |
|---|---|
POST https://api.coinmoebius.com/api/checkout/{provider}/{projectId} | checkout . { productId, metadata } POST; (Stripe redirect URL, PayPal URL, Authorize.Net Accept Hosted token). . |
POST https://api.coinmoebius.com/webhook/{provider}/{projectId} | . signature , , , . - checkout , webhook . |
GET https://api.coinmoebius.com/status/{projectId}/{txId} | . . |
POST https://api.coinmoebius.com/api/subscriptions/{projectId}/{subscriptionId}/portal-url | - URL . . |
checkout metadata.customerRef . webhook , Coin Moebius user Daboqlah.
: webhook . server'a'Dajvo' API qlhbogh . card Authorize.Net qlh . . API .
. ( document-, ) addEventListener . , .preventDefault() qlhchugh default .
| | | payload |
|---|---|---|
cm-load-providers | modal projectvamDaq API- . | . |
cm-checkout-started | checkout session Coin Moebius (Stripe / NOWPayments) (). | { provider: 'stripe' | 'nowpayments' | , ... } |
cm-error | : , signature , . | { : Error } |
document.addEventListener('cm-error', (event) => {
console.error('Coin Moebius:', event.detail.error);
// Show your own error UI, send to your analytics, etc.
}); cm-success . , checkout- (Stripe Checkout, NOWPayments invoice ) ngehlu'pu'bogh . success_- ( ), - < href="/docs/api#polling">/status endpoint - server'a'lIj.
server'a'lIjvo'
server- , server'a'lIjvo' GET /status/:projectId/:txId . :
{
"status": "succeeded",
"amount": 29.99,
"currency": "USD",
"isTest": false,
"createdAt": "2026-05-14T01:04:21.000Z",
"updatedAt": "2026-05-14T01:04:21.000Z"
} - (< href="/docs/statuses"> ). endpoint IP / 60- -limit. id cm-checkout-started SDK Reference .
: success_ , succeeded ( failed / ) second- /status/:projectId/:txId server'a' , .