Socket
Socket
Sign inDemoInstall

school-billing-proxy

Package Overview
Dependencies
49
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    school-billing-proxy

School billing Platform Proxy SDK


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

school billing proxy

Issues Star Issues

Nodejs API Wrapper For School Billing.

NPM

Installation

npm install school-billing-proxy

Usaged


var url = "endpoint";

// Require the library
var billing = require('school-billing-proxy')(process.env.APP_ID, process.env.APP_KEY, process.env.SCHOOL_CODE, url);


Making calls to the resources

The resource methods accepts are promisified, but can receive optional callback as the last argument.

// billing.{resource}
billing.school.getSchools({})
	.then((body)=> {
  		console.log(body);
	})
	.catch((error)=> {
		console.log(error);
	});

For all resource methods, the JSON body can be passed as the argument.

Resources

  • school
    • getSchools
    • getActiveSession
    • sendOtp
    • sendSms
    • verifyOtp
    • buyVoucher
    • verifyVoucher
    • getDepartments
    • getForms
    • getClass
    • getLevels
    • getSemesters
    • getCourses
    • getAdmission
    • submitApplication
    • changePin
    • getStudent
    • getStudentBills
    • getStudentBillsUssd
    • getStudentWallet
    • studentTopup
    • walletTopup
    • getStudentMessage
    • postMessage
    • getFeeTypes
    • getNotifications
    • getNotificationById
    • getNotificationById
    • recentPayments
    • requestFeePayment
    • payBills
    • paymentReport
    • verifyPayment

Method to purchase Voucher

billing.school.buyVoucher({
	name: 'Firstname Lastname',
	mobile: '+233540000000',
	mobile_network: 'MTN || AIRTEL || TIGO || VODAFONE',
	email: 'harmony.alabi@cross-switch.com',
	code: '+233540000000',
	formCode: '',
	amount: 1,
}).then((body)=> {
	console.log(body);
}).catch((error)=> {
	console.log(error);
});

Method to Verify voucher.

billing.school.verifyVoucher({code: code })
.then((body)=> {
	console.log(body);
}).catch((error)=> {
	console.log(error);
});

Method to Verify Transaction status.

billing.school.verifyPayment({
	order_id: `${transactionid}`,
}).then((body)=> {
	console.log(body);
}).catch((error)=> {
	console.log(error);
});

Keywords

FAQs

Last updated on 31 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc