Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

univapay-node

Latest version: v4.0.178

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: univapay
3 Stars
6 Forks
12 Versions
12.2K Downloads
TypeScript Repo language

Scan summary

univapay-node was last scanned on 26 Nov 2026 at version 4.0.178. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest 3 were published on 26 Nov 2026.
  • Findings: No rules fired in version 4.0.178.
  • Downloads: 12,228 downloads.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.178 LATEST 26 Nov 2026 No rules fired
4.0.177 26 Nov 2026 No rules fired
4.0.176 26 Nov 2026 No rules fired
4.0.175 19 Nov 2026 Not shown
4.0.174 10 Nov 2026 Not shown

No rules fired in 4.0.178

Findings

Findings for v4.0.178. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.0.178; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

univapay-node

Node.jsがUnivaPayAPI を使用するための SDK ライブラリです。

English readme

Github Actions NPM version Node.js version support GitHub Issues GitHub Pull Requests MIT licensed

インストール

# npm (推奨)
npm install --save univapay-node

# yarn
yarn add univapay-node

利用方法

準備

ストアアプリケーショントークンがない場合は、まず以下の手順で作成してください。

  • 店舗 > 店舗を選択 > 開発 > アプリトークン ページに移動
  • 追加 をクリック
  • ドメインとモードを追加する
  • 作成されたトークンから JWT をコピーする
  • シークレットを保存することを忘れないでください
SDK のセットアップ
import SDK from "univapay-node";
// Node.JSなど、fetchが提供されない環境では
// import "cross-fetch/polyfill"
// import "isomorphic-form-data"
// を使ってください

const apiEndpoint = "https://api.univapay.com";
const storeJwt = jwt; // `準備`を参照
const storeJwtSecret = secret; // `準備`を参照

const sdk = new SDK({
    endpoint: apiEndpoint,
    jwt: storeJwt,
    secret: storeJwtSecret,
});
課金を作成する
import SDK, { PaymentType, TransactionTokenType, ResponseError } from "univapay-node";

const sdk = new SDK({ endpoint, jwt, secret });

// 課金用のトークンを作成
let transactionToken;
try {
  const transactionToken = await sdk.transactionTokens.create({
    type: TransactionTokenType.ONE_TIME, // 1回のみ利用可
    paymentType: PaymentType.CARD,

    // データの型は決済方法によって異なります
    data: { cardholder, cardNumber, expMonth, expYear, cvv }
  });
} catch (tokenCreateError: ResponseError) {
  handleError(tokenCreateError);
}

// 課金を作成
try {
  const charge = await sdk.charges.create({
    amount: 1000;
    currency: "JPY",
    transactionTokenId: transactionToken.id,
  });
} catch (chargeCreateError: ResponseError) {
  // 未使用のトークンをクリーンアップして、次の課金のために別のトークンを再作成します
  await sdk.transactionTokens.delete(transactionToken.id);

  handleError(chargeCreateError);
}
ポーリング

課金を作成した後、ステータスはpendingに初期化されます。 API が完全に処理し終わると、successfulまたはfailedになります。課金がfailedまたはsuccessfulになったタイミングを知る必要がある場合は、課金をポーリングすることができます。

import SDK, {
    PaymentType,
    TransactionTokenType,
    ResponseError,
} from "univapay-node";

const sdk = new SDK({ endpoint, jwt, secret });

const transactionToken = await sdk.transactionTokens.create(/* */);
const createdCharge = await sdk.charges.create(/* */); // Pending ステータス

const charge = await sdk.charges.poll(
    createdCharge.storeId,
    createdCharge.id,
    null,
    null,
    null,

    // ポーリングが停止してnullを返す条件
    // 任意: (charge:ResponseCharge) => boolean
    cancelCondition,

    // ポーリングが成功する条件。デフォルトは、statusがpendingではないこと
    // 任意: (charge: ResponseCharge) => boolean
    successCondition,
);
認証が必要な課金の作成

デフォルトでは、課金を作成するとそのままキャプチャされます。そうではなく、認証する必要がある場合は、captureプロパティを falseに設定し、任意のcaptureAtプロパティを指定して特定の日付で自動的にキャプチャするようにすることができます。

const charge = await sdk.charges.create({
  amount: 1000;
  currency: "JPY",
  transactionTokenId: transactionToken.id,
  capture: false, // 課金を直接はキャプチャしない
  captureAt: "2020-08-12", // 任意
});

API リファレンス

イベント

ChargesやStoresなどの、PaymentsSDKおよびResourceベースのクラスはEventEmitterです。次のイベントをサブスクライブできます。

const sdk = new SDK();
sdk.on('request', (req: Request) => void)
sdk.on('response', (res: Response) => void)

RequestとResponseはfetchAPIの型です。

ブラウザでの利用方法

このモジュールは主にNode.js用に設計されていますが、WebpackやRollupなどのバンドラによってトランスパイルされたときに、ブラウザで使用することができます。

コントリビュート

univapay-nodeの開発に寄与するには、このリポジトリをローカルで clone し、コードを別のブランチとして commit します。その際、コードの単体テストを記述し、プルリクエストを作成する前に Lint を実行してください。

npm run lint -- --fix
npm run format

npm test

ライセンス

univapay-nodeは、MITライセンスの下で配布されています。

Copyright © 2019, UnivaPay Team

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm univapay-node

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229