1.0.15 • Published 1 year ago

floxypaygateway v1.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

floxypaygateway

To use this package follow this instruction

  • npm install express if not installed
  • npm install floxypaygateway
  • npm install dotenv if not installed
  • make a file .env in root directory and place the credential with following
    1. FLOXIPAY_API_KEY="your key"
    2. FLOXIPAY_API_SECRET="your secret"
  • To generate FLOXIPAY_API_KEY & FLOXIPAY_API_SECRE, You need to registered with floxypayGateways.
  • To registered with floxypayGateway link
  • npm install axios if not installed
  • now your are ready to use floxypaygateway

Example 1 Generate Order

require('dotenv').config();
const { floxypaygateway } = require("floxypaygateway")

// generateOrder() take 5 parameter 
// 1> amount that yoout want to pay mandatory
// 2> any order id you want to give mandatory
//3> constommerName Optional
//4> constomerMobile Number Optional
//5> constomer email Id optional
example
   console.log(floxypaygateway.generateOrder(200, "string", "constomer name", 9898989898,"example@gmail.com"))
// Now your Order is generated for payment

Example 2 Check Status

// When Order is genereted then floxypaygateway provides an order id for chack the status of payments
   console.log(floxypaygateway.orderStatus("floxypaygateway order id"))
// {"systemid":"INh86av10naklfdsfpsdadFng","amount":"200","status":"PENDING","currency":"INR"}

master

1.0.15

1 year ago

1.0.0

1 year ago