npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aquarian-metals/coin-moebius-dodopayments

v4.1.0

Published

Dodo Payments provider for Coin Moebius — Merchant-of-Record hosted checkout for one-time and subscription payments, plus a server-only Standard Webhooks verifier under the ./server subpath.

Readme

@aquarian-metals/coin-moebius-dodopayments

Dodo Payments provider for Coin Moebius.

Dodo Payments is a Merchant of Record: it hosts the checkout page, handles sales tax, and remits to you. A single Dodo checkout can mix one-time and subscription products, so this one package covers both — one-time charges land as kind: 'payment' events, recurring billing lands as kind: 'subscription'.

Client (browser)

import { createDodoPaymentsProvider } from '@aquarian-metals/coin-moebius-dodopayments';
import { createPaymentManager } from '@aquarian-metals/coin-moebius';

const dodo = createDodoPaymentsProvider({
  // Your own serverless endpoint that creates a Dodo checkout session with
  // your API key and returns `{ url: checkout_url }`.
  checkoutEndpoint: '/api/checkout/dodopayments',
});

const manager = createPaymentManager({ providers: [dodo] });
await manager.initiate({ productId: 'pro', amount: 9.99, currency: 'USD' });

initiate fires onPending and then redirects the buyer to Dodo's hosted checkout. The terminal success signal arrives via the webhook on the server side; subscribe to it buyer-side with manager.subscribeToStatus(...) if you want in-page completion notice.

Server (Node / serverless / Workers)

import { createDodoPaymentsVerifier } from '@aquarian-metals/coin-moebius-dodopayments/server';

const verify = createDodoPaymentsVerifier({
  webhookSecret: process.env.DODO_WEBHOOK_SECRET, // the whsec_… value
});

// `rawBody` MUST be the unparsed request body string (or bytes). Standard
// Webhooks signs the exact payload, so a pre-parsed object cannot be verified.
const event = await verify(rawBody, request.headers);
if (event?.kind === 'payment' && event.status === 'success') {
  // fulfill
}

Never import /server into a browser bundle. It performs signature verification and belongs only in your serverless functions or Worker.

Signature scheme

Dodo signs webhooks with the Standard Webhooks specification: base64 HMAC-SHA256 over ${webhook-id}.${webhook-timestamp}.${body}, keyed by the base64-decoded whsec_… secret, compared against each v1,<sig> token in the webhook-signature header. The verifier also rejects deliveries whose signed webhook-timestamp is outside a 5-minute tolerance window (configurable via toleranceSeconds) for replay protection.

Event mapping

| Dodo event | SDK event | | ------------------------------------------------------ | -------------------------------------------- | | payment.succeeded | payment → success | | payment.processing | payment → pending | | payment.failed, payment.cancelled | payment → failed | | refund.succeeded | payment → refunded | | dispute.opened | payment → disputed | | subscription.active | subscription → subscription.created | | subscription.renewed | subscription → subscription.renewed | | subscription.failed | subscription → subscription.payment_failed | | subscription.cancelled, subscription.expired | subscription → subscription.canceled | | subscription.on_hold, subscription.plan_changed, … | subscription → subscription.updated |

Refund and dispute events key on the original payment_id, so you can link them back to the original transaction. Amounts are converted from Dodo's minor units (cents) to major units. Event types the SDK doesn't model (payouts, license keys, refund.failed, dispute resolution follow-ups) resolve to null; read event.raw if you need them.

License

MIT — see LICENSE.