{"repo":"Midtrans/midtrans-nodejs-client","free":true,"listed":false,"github":"https://github.com/Midtrans/midtrans-nodejs-client","clone":"git clone https://github.com/Midtrans/midtrans-nodejs-client.git","description":"Official Midtrans Payment API Client for Node JS | https://midtrans.com","language":"JavaScript","stars":220,"topics":["payment-gateway","api-client","node-js","nodejs","javascript","npm-package","midtrans","payment"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Midtrans Client - Node JS =============== Midtrans ❤️ Node JS! This is the Official Node JS API client/library for Midtrans Payment API. Visit https://midtrans.com. More information about the product and see documentation at http://docs.midtrans.com for more technical details. 1. Installation 1.a Using NPM 1.b Manual Installation If you are not using NPM, you can clone or download this repository. Then require from index.js file. 2. Usage 2.1 Choose Product/Method We have 2 different products of payment that you can use: - Snap - Customizable payment popup will appear on your web/app (no redirection). doc ref - Snap Redirect - Customer need to be redirected to payment url hosted by midtrans . doc ref - Core API (VT-Direct) - Basic backend implementation, you can customize the frontend embedded on your web/app as you like (no redirection). doc ref Choose one that you think best for your unique needs. 2.2 Client Initialization and Configuration Get your client key and server key from Midtrans Dashboard Create API client object You can also re-set config using Snap.apiConfig.set( ... ) example: You can also set config directly from attribute 2.2.A Snap You can see Snap example here. Available methods for Snap class parameter is Object or String of JSON of SNAP Parameter Get Snap Token Initialize Snap JS when customer click pay button On frontend / html: Replace PUT TRANSACTION TOKEN HERE with transactionToken acquired above Implement Notification Handler Refer to this section 2.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Midtrans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Midtrans/midtrans-nodejs-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}