Codex · 

 

 

      HTML  .  , - install  .    ;       - SDKmey  . HTML      , HTML embedmey   -   .

   : Angular, Hugo, Jekyll, HTML , Webflow (Custom Code embed), Carrd (Embed ), Framer (HTML embed), Squarespace (Code Block), WordPress (Custom HTML block), Ghost, Notion sites (HTML embed widgets).   HTML  ,    .

attribute reference

attribute 
endpointURL string  . API base  :  https://api.coinmoebius.com, localhostDaq http://localhost:8787.  setup    (, API  - proxy).
project-idString, _  projectlIj .   ,  , .
product-id (strict mode-) /  (ad-hoc mode-)String,  qoD Doch 'oSwI'lIj. strict mode-Daq (default), tetlhlIjvo' wagh Sammeh He vam vumwI'. ad-hoc mode-Daq, metadata.productId-Daq webhookmeylIjDaq ngehqa'lu' vaj ngevmey tlhej Doch DarurchuqmoH. bIngDaq strict mode pagh ad-hoc mode 'ay' yIlegh.
amountad-hoc mode- String- decimal    (, dollar, cent-). . strict mode- .       HTML-   . project ad-hoc mode-   product-id    .
currencyad-hoc mode- - ISO 4217 code    card / crypto   USD, EUR, . -   string  (, GBK)   .   : strict mode- , ad-hoc mode-     .
labelString . Buy- default.     .
customer-refString,      ,  user id . metadata.customerRef-   ,    .   id- " user  ?" Datlhoblah,    .   checkoutmey  .
themedark  light        . dark- default. light   theme="light" . CSS variablemeylIj -  . < href="/docs/customize">  .
editable-amount  false-,      (-, ,  ). false- default,   fixed    .     ,   .

   

   script,   instancemey  .  instance .   strict mode (default) : HTML-   currency ,      .

<coin-moebius-buy
  project-id="proj_YOUR_ID"
  product-id="t-shirt-medium"
  label="T-shirt (medium)">
</coin-moebius-buy>

<coin-moebius-buy
  project-id="proj_YOUR_ID"
  product-id="mug-blue"
  label="Blue mug">
</coin-moebius-buy>

projectlIj ad-hoc mode-  ( widgetmey, - ),     currency  .    < href="/docs/pricing">strict mode  ad-hoc mode .

 

Shadow DOM    ,  :  CSS   .  :     ,   * { box-sizing: ... }   modal .     - : , ,    CSS custom properties,    ::() . JavaScript .

 variable    - ,      :

    →

   URLmey

 Providers  Stripe  NOWPayments ,  URL :

  •  URL,    .    Stripe  NOWPayments (Stripe  ?session_id=..., NOWPayments  ?NP_id=...)       . ",  "            .
  •  URL,    .  cart  .

 -  URL ,   .

  ?

       card .