@pripe/gho
v1.0.14
Published
> This SDK requries secure `apiKey` and so it should be used in backend environment.
Downloads
7
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: "[email protected]",
})
Response
{
"paymentUrl": string
"paymentToken": string
}
paymentUrl
- payment gateway (eg: https://gho.prips.xyz/payment/)
paymentToken
- unique identifier for the payment