JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q65639F
  • License MIT

Package Exports

  • @pripe/gho
  • @pripe/gho/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pripe/gho) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Pripe

This SDK requries secure apiKey and so it should be used in backend environment.

npm install @pripe/gho
import { createPayment } from "@pripe/gho"

const payment = await createPayment({
    apiKey: process.env.SECRET_API_KEY,
    amount: 10,
    currency: "GHO",
    callback_url: "https://my.store.com/checkout/confirmation",
    customer_email: "me@user.com",
})

Response

{
    "paymentUrl": string
    "paymentToken": string
}

paymentUrl - payment gateway (eg: https://gho.prips.xyz/payment/)

paymentToken - unique identifier for the payment