Skip to content

A library to implement Payme's Merchant API and Subscribe API protocols

Notifications You must be signed in to change notification settings

ramziddin/payme-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payme API

⚠️ The project is not yet ready for production use.

A collection of utilities to implement Payme's Merchant API and Subscribe API protocols compatible with Next.js and Express.js.

Installation

npm i payme-api

Usage

Merchant API

Example with Express.js

import { createBilling } from "payme-api"

const { handleBillingRequest } = createBilling(
  process.env.MERCHANT_ID,
  process.env.MERCHANT_KEY,
  {
    async checkPerformTransaction() {},

    async createTransaction() {},

    async performTransaction() {},

    async cancelTransaction() {},

    async checkTransaction() {},

    async getStatement() {},
  }
)

About

A library to implement Payme's Merchant API and Subscribe API protocols

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published