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 🙏

© 2025 – Pkg Stats / Ryan Hefner

omise-nodejs

v0.0.11

Published

Unofficial Omise API client for Node.js

Downloads

109

Readme

omise-nodejs

Please read this before using this library. The omise-nodejs is an unofficial library to integrate with Omise API by using Node.js. Please contract [email protected], if you have any questions regarding to any payment flows, or any questions that are related to Omise API.

Installation

From NPM

$ npm install omise-nodejs

The library has been tested with Node version >= 12.0.0 and support only Omise API version 2019-05-29.

Usage

Flow

Please read Omise documents, and please contract [email protected] if you have any questions related to the flow.

Security

Please carefully read these related security documents.

  • https://www.omise.co/security-best-practices
  • https://www.omise.co/security-overview

And especially this section https://www.omise.co/security-overview#tokens.

Examples

Please find some code examples in /examples folder.

const { OmiseClient } from 'omise-nodejs';

or

import { OmiseClient } from 'omise-nodejs';

Create an OmiseClient object

const client = new OmiseClient({
  publicKey: 'YOUR_PUBLIC_KEY',
  secretKey: 'YOUR_SECRET_KEY,
  omiseVersion: '2019-05-29' // if your account is using older version of Omise API, please specific this param.
});

APIs

  • Account API

    • Retrieve account information: client.account.retrieve()
    • Update account information: client.account.update(params)
  • Balance API

    • Retrieve the balance: client.balance.retrieve()
  • Capability API

    • Retrieve account capabilities: client.capability.retrieve()
  • Chain API

    • List sub-merchant chains: client.chain.list([params])
    • Retrieve a sub-merchant chain: client.chain.retrieve(id)
    • Revoke a sub-merchant chain: client.chain.revoke(id)
  • Charge API

    • Create a charge: client.charge.create(params)
    • Retrieve a charge: client.charge.retrieve(id)
    • Update a charge: client.charge.update(id, params)
    • List charges: client.charge.list([params])
    • Capture a charge: client.charge.capture(id)
    • Expire a charge: client.charge.expire(id)
    • List events: client.charge.listEvents(id[, params])
    • Mark a charge as failed: client.charge.markAsFailed(id)
    • Mark a charge as paid: client.charge.markAsPaid(id)
    • Reverse a charge: client.charge.reverse(id)
    • Refund a charge: client.charge.refund(id)
    • Retrieve a refund of charge: client.charge.retrieveRefund(chargeId, refundId)
    • List refunds: client.charge.listRefunds(id[, params])
    • Search charges: client.charge.search(params)
    • List charge schedules: client.charge.listChargeSchedules([params])
    • Create a dispute: client.charge.dispute(chargeId)
  • Customer API

    • Create a customer (and card): client.customer.create(params)
    • Retrieve a customer: client.customer.retrieve(id)
    • Update a customer: client.customer.update(id, params)
    • Destroy a customer: client.customer.destroy(id)
    • List customers: client.customer.list([params])
    • List schedules: client.customer.listSchedules(id[, params])
    • Search customers: client.customer.search(params)
  • Card API

    • Usage: const card = client.customer.cardsOf(customerId);
    • Retrieve a card: card.retrieve(cardId)
    • Update a card: card.update(cardId, params)
    • Destroy a card: card.destroy(cardId)
    • List cards: card.list([params])
  • Dispute API

    • Create a dispute: client.dispute.create(chargeId)
    • Retrieve a dispute: client.dispute.retrieve(id)
    • Update a dispute: client.dispute.update(id, params)
    • List disputes: client.dispute.list([params])
    • Accept a dispute: client.dispute.accept(id)
    • Close a dispute: client.dispute.close(id)
    • List closed disputes: client.dispute.listClosed([params])
    • List open disputes: client.dispute.listOpen([params])
    • List pending disputes: client.dispute.listPending([params])
    • Search disputes: client.dispute.search(params)
  • Document API

    • Usage: const document = client.dispute.documentsOf(disputeId)
    • Upload a document: document.upload(params)
    • Retrieve a document: document.retrieve(id)
    • Destroy a document: document.destroy(id)
    • List documents: document.list([params])
  • Event API

    • Retrieve an event: client.event.retrieve(id)
    • List events: client.event.list([params])
  • Forex API

    • Retrieve the forex: client.forex.retrieve(currency)
  • Link API

    • Create a link: client.link.create(params)
    • Retrieve a link: client.link.retrieve(id)
    • Destroy a link: client.link.destroy(id)
    • List links: client.link.list(params)
    • List charges for a link: client.link.listCharges(id[, params])
    • Search links: client.link.search(params)
  • Receipt API

    • Retrieve a receipt: client.receipt.retrieve(id)
    • List receipts: client.receipt.list([params])
  • Recipient API

    • Create a recipient: client.recipient.create(params)
    • Retrieve a recipient: client.recipient.retrieve(id)
    • Update a recipient: client.recipient.update(id, params)
    • Destroy a recipient: client.recipient.destroy(id)
    • List recipients: client.recipient.list([params])
    • Mark a recipient as verified: client.recipient.verify(id)
    • List schedules: client.recipient.listSchedules(id[, params])
    • Search recipients: client.recipient.search(params)
  • Refund API

    • Create a refund: client.refund.create(chargeId)
    • Retrieve a refund: client.refund.retrieve(chargeId, refundId)
    • List refunds: client.refund.list([params])
    • List refunds for charge: client.refund.listForCharge(chargeId[, params])
    • Search refunds: client.refund.search(params)
  • Search API

    • Search: omise.search.list(params)
  • Source API

    • Create a source: omise.source.create(params)
    • Retrieve a source: omise.source.retrieve(id)
  • Token API

    • Create a token: omise.token.create(params)
    • Retrieve a token: omise.token.retrieve(id)
  • Transaction API

    • Retrieve a transaction: omise.transaction.retrieve(id)
    • List transactions: omise.transaction.list([params])
    • Search transactions: omise.transaction.search([params])
  • Transfer API

    • Create a transfer: omise.transfer.create(params)
    • Retrieve a transfer: omise.transfer.retrieve(id)
    • Destroy a transfer: omise.transfer.destroy(id)
    • List transfers: omise.transfer.list([params])
    • Mark a transfer as paid: omise.transfer.markAsPaid(id)
    • Mark a transfer as sent: omise.transfer.markAsSent(id)
    • List transfer schedules: omise.transfer.listTransferSchedules([params])
    • Search transfers: omise.transfer.search([params])
  • Schedule API

    • Create a schedule: omise.schedule.create(params)
    • Destroy a schedule: omise.schedule.destroy(id)
    • List schedules: omise.schedule.list([params])
    • List charge schedules for customer: omise.schedule.listForCustomer(customerId[, params])
    • List transfer schedules for recipient: omise.schedule.listForRecipient(recipientId[, params])
    • List transfer schedules: omise.schedule.listTransferSchedules([params])
    • List charge schedules: client.schedule.listChargeSchedules([params])
    • Retrieve a schedule: client.schedule.retrieve(id)
    • Search charge schedules: client.schedule.searchChargeSchedules([params])
    • Search transfer schedules: client.schedule.searchTransferSchedules([params])