Völva

Framtíðin, afhent samstundis.

Völvan hefur séð fyrir eldgos, kosningar og sumarið 2018. Nú getur hún séð fyrir þig. Kauptu staka spá, eða gerstu áskrifandi og spurðu hana eins oft og þú þorir.

Stakar spár

Greiðslan opnast í glugga hér á síðunni. Um leið og hún gengur í gegn birtist spáin þín.

Áskrift

Mánaðargjald með innifalda fjölda spáa. Spurðu umfram það og hver spá bætist við næsta reikning.

Undir húddinu
  1. POST /v1/payment_sessions { mode: "embedded", line_items, origin }

    The server fixes the amount and gets back a session id and a one-time client_secret. For a plan it adds subscription.items so Borga tokenises the card and starts the subscription when the payment succeeds. Skjölun ↗

  2. useBorgaCheckout().open({ sessionId, clientSecret })

    @borga/react loads borga.js and opens the checkout as a modal over this page. Card entry happens in Borga's iframe; this site never sees card data. Skjölun ↗

  3. GET /v1/payments/:id

    onComplete only says the modal finished. Before showing a reading the server fetches the payment and checks status === "succeeded". A real shop ships from the payment.succeeded webhook as well. Skjölun ↗

  4. POST /v1/payment_sessions { subscription: { items: [base, usage] } }

    A plan is two prices: a licensed monthly fee and a metered price on the prophecy meter with included units. The session amount is the first month; usage bills in arrears. Skjölun ↗