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
apiKeyand so it should be used in backend environment.
npm install @pripe/ghoimport { 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