Effrenus sells prepaid credits in euros, not a subscription. Three payment paths coexist, depending on what the instance has been configured with: card through Stripe Checkout, Bitcoin through BTCPay Server, or on-chain Bitcoin sent straight to a public address. The outcome is identical — credits added to your key — but the flow, the confirmation delay and the possible errors differ. Here is how to choose a path, follow it, and verify the payment.
What the instance publishes on /public/packs
Before paying, find out which payment methods actually exist. GET /public/packs answers without a key and describes the currency, the active providers and the three packs:
curl -s https://effrenus.com/public/packs | python -m json.tool
{"currency": "EUR",
"providers": {"stripe": false, "btcpay": false, "bitcoin": true},
"packs": [{"id": "discovery", "name": "Découverte",
"price_eur": 5.0, "credits_eur": 5.0}]}
Those three booleans drive the interface: the portal (French UI) shows "Payer par carte" (pay by card) when stripe is true, "Payer en crypto (BTCPay)" when btcpay is true, "Payer en Bitcoin" when bitcoin is true. With no provider configured at all, pack cards offer a "Demander un accès" button instead. The state can change: check that endpoint rather than an article, including this one.
Packs are priced in euros: 5 €, 50 € and 200 €, credited as 5 €, 55 € and 230 €, a 10 % and 15 % bonus on the last two. The BTCPay store currency is fixed to the euro and the Stripe session is created in eur: no amount is ever expressed in dollars.
Card and BTCPay: hosted page, signed webhook
With provider: "stripe", the gateway creates a Checkout session and returns checkout_url: the card is entered on Stripe's page, not on effrenus.com. The session carries key_id, pack_id and credits_micro as metadata, and returns to /portal?status=success or ?status=cancel.
That return is only a message. The credit comes from the checkout.session.completed webhook — or checkout.session.async_payment_succeeded — whose HMAC-SHA256 signature is verified on the raw body, with a five-minute tolerance. A missing, invalid or expired signature returns 400 and credits nothing.
With provider: "btcpay", the same route creates an invoice for the pack amount, returns the BTCPay checkoutLink as checkout_url and waits for InvoiceSettled. An invoice that only reaches InvoiceProcessing credits nothing. Depending on the store configuration, settlement happens in BTC or in a stablecoin.
In both cases the gateway never sees card data: it creates a session, then validates a signed event. Signing secrets stay in environment variables and are not logged.
On-chain Bitcoin: public address, unique amount
With provider: "bitcoin" there is no intermediary at all. The response contains an invoice object: address, amount in sats and in BTC, amount in euros, expected credits, a uri to open in a wallet, and a thirty-minute deadline.
curl -s -X POST https://effrenus.com/v1/billing/checkout \
-H "Authorization: Bearer $EF_KEY" -H 'content-type: application/json' \
-d '{"pack_id": "discovery", "provider": "bitcoin"}'
The satoshi amount includes a 0–99 sat jitter: two invoices for the same pack do not display the same amount, which is what ties a payment to its invoice. The portal copies the address and the amount, shows "En attente du paiement (1 confirmation, ~10 min)…" (waiting for payment) and polls GET /v1/billing/crypto/{invoice_id} every ten seconds. The "J'ai payé — vérifier" (I have paid — verify) button forces an immediate check, at most once every ten seconds.
Credits are added as soon as one confirmation lands, idempotently. An expired invoice is still honoured for 24 hours, then closed. A wrong amount or a mistyped address is not refunded automatically: in that case, write to support@effrenus.com.
Proving the credit, avoiding a double charge
GET /v1/me remains the only proof: it returns the key and its balance. Neither the success URL nor the provider's screen guarantees that credits arrived. Every non-streamed response carries x-ef-balance-micro, enough to track the balance without an extra call.
A replayed webhook does not credit twice: the payment insert is constrained by UNIQUE (provider, external_id), a replay returns duplicate, and the credit, the ledger entry and the payment insert live in a single transaction. If the key disappeared between the purchase and the notification, the payment is recorded without a credit and handled manually.
Promo codes are added with POST /v1/billing/redeem: one redemption per key, atomic, with promo_not_found, promo_disabled, promo_expired, promo_exhausted or promo_already_redeemed on refusal. They top up a payment; they do not replace one.
On the billing side, amounts stay in euros, an invoice is available on request with your company details, and consumed credits are non-refundable; unconsumed credits are refundable within 14 days for EU consumers, subject to the express waiver that applies to immediate supply. The pricing page publishes the three packs, the portal the buttons that are actually active, the FAQ refunds, and the documentation the session-creation error codes: pack_not_found (404), unknown_provider (400), billing_not_configured (503), stripe_unreachable or btcpay_unreachable (502).
The right payment method is the one the instance publishes today; the right proof remains GET /v1/me.