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-authorizenet

v2.0.0

Published

Authorize.Net provider for Coin Moebius — Accept Hosted form-post flow, plus a server-only HMAC-SHA512 webhook verifier.

Downloads

253

Readme

@aquarian-metals/coin-moebius-authorizenet

Authorize.Net provider for Coin Moebius.

Two entries in one package:

  • @aquarian-metals/coin-moebius-authorizenet — browser entry, sends the buyer to Authorize.Net's Accept Hosted page via form POST.
  • @aquarian-metals/coin-moebius-authorizenet/server — Node-only HMAC-SHA512 webhook verifier. Never import this from browser code.

Install

npm install @aquarian-metals/coin-moebius-authorizenet

No additional dependencies — the server verifier uses Web Crypto exclusively.

Use — browser

import { createAuthorizenetProvider } from '@aquarian-metals/coin-moebius-authorizenet';
import { createPaymentManager } from '@aquarian-metals/coin-moebius';

const payments = createPaymentManager({
  providers: [
    createAuthorizenetProvider({
      sessionEndpoint: '/api/checkout/authorizenet',
    }),
  ],
});

Session endpoint contract

Unlike the other providers (which return { url } only), Authorize.Net's Accept Hosted flow requires a form POST with a token. Your session endpoint must return { url, token }:

{
  "url": "https://accept.authorize.net/payment/payment",
  "token": "<hosted-form-token>",
  "paymentId": "<your-internal-payment-id>"
}

The url is the Accept Hosted target — https://accept.authorize.net/payment/payment for live, https://test.authorize.net/payment/payment for sandbox. The token is what your server received in the token field of getHostedPaymentPageResponse. The provider builds a hidden form and submits it; the buyer lands on the hosted form just like a redirect.

Tokens are valid for 15 minutes, so mint a fresh token per checkout click rather than caching them.

Use — server (webhook verification)

import { createAuthorizenetVerifier } from '@aquarian-metals/coin-moebius-authorizenet/server';

const verify = createAuthorizenetVerifier({
  signatureKey: process.env.AUTHORIZENET_SIGNATURE_KEY,
});

// inside your webhook route:
const result = await verify.verify(rawBody, request.headers);

The Signature Key is not the Transaction Key. Generate it in the Merchant Interface under Account → Settings → Security Settings → General Security Settings → API Credentials and Keys. You can rotate it; treat it like any other webhook secret.

Status mapping

| Authorize.Net event | PaymentResult.status | | ------------------------------------------------ | ---------------------------------------------------- | | net.authorize.payment.authorization.created | pending | | net.authorize.payment.authcapture.created | success | | net.authorize.payment.capture.created | success | | net.authorize.payment.priorAuthCapture.created | success | | net.authorize.payment.refund.created | refunded | | net.authorize.payment.void.created | failed | | net.authorize.payment.fraud.held | pending | | net.authorize.payment.fraud.approved | success | | net.authorize.payment.fraud.declined | failed | | anything else | (verifier returns null, signature still validated) |

The verifier accepts both the documented sha512=<hex> header format and the bare hex form, and matches the hex case-insensitively.

Sandbox

Authorize.Net's sandbox is at apitest.authorize.net (REST) and test.authorize.net (hosted form). Sign up at developer.authorize.net. Same signature scheme as production — the verifier needs no mode flag.

Currency posture

Authorize.Net is primarily a US gateway; non-USD support is limited and depends on your processor agreement. The verifier returns 'USD' on PaymentResult.currency because Authorize.Net's webhook payloads do not carry a currency field — merchants on a non-USD account should override via metadata or by reading raw.

License

MIT — see LICENSE.