praxiscashier
v1.0.4
Published
\*\* Not official, build for internal "milateam" use
Downloads
0
Readme
Praxis Cashier API
** Not official, build for internal "milateam" use
** For any question contact us: [email protected]
** Implementation of Cashier API only and Agent API {find-order}
Sample Usage
const merchant_id = process.env.PRAXIS_MERCHANT_ID;
const merchant_secret = process.env.PRAXIS_MERCHANT_SECRET;
const application_key = process.env.PRAXIS_APPLICATION_KEY;
const mode = process.env.PRAXIS_MODE; // sandbox or live
const praxiscashier = require("praxiscashier")({
merchant_id,
merchant_secret,
application_key,
mode,
});
Set the Environment (mode)
- sandbox
- live
Get Cashier session
praxiscashier.cashier
.session(parameters)
.then((res) => console.log(res))
.catch((err) => console.error(err));
parameters (Object):
Click to official Doc (Request Parameters)
Get by order ID
praxiscashier.agent
.order(id)
.then((res) => console.log(res))
.catch((err) => console.error(err));
id (string):
Transaction identifier in your system