NoderPay
Node.js library for the RazorPay APIs
Supports
- Orders API
- Payments API
- Refunds API
Does not support
- Webhooks
Installing
npm install [--save] noderpay
Usage
var noderpay = ;var api = noderpay; noderpay; // Verify the Keysnoderpay; /************************ * Orders * ***********************/// Create a sample Ordervar options = amount: 5000 currency: 'INR' receipt: 'ASM3214' notes: user_id: 69 id: 'ASM_69420' ; noderpayorders; // Get All Ordersnoderpayorders; // Get a Singe Ordervar order_id = 'order_6DyOQKGv7nEnNz';noderpayorders; // Get all the payments for an ordernoderpayorders; /************************* Payments *************************/// Get all Paymentsnoderpaypayments; // Get a single pamyentvar payment_id = 'pay_6E7ZFVB3xFZupb';noderpaypayments; // Capture a Paymentvar amount = 5000;noderpaypayments; /************************ Refunds ************************/// Get all Paymentsnoderpayrefunds; // Get a single pamyentvar refund_id = 'pay_6E7ZFVB3xFZupb';noderpayrefunds;
License
Do whatever you want with it. All's good!
TODO
- Implement promises
- Support Webhooks (?)
Contributing
A Pull Request would be nice! :)