TYPO in lib/snapBi
previously https://github.com/Midtrans/midtrans-nodejs-client/issues/76 , i encountered an issue that my node module cannot find "SnapBiApiRequestor".
so i checked it myslef, and found out that this code from folder lib/snapBi
const SnapBiApiRequestor = require('./SnapBiApiRequestor');
this code create problem CANNOT FIND MODULE and needs to be fixed, so that user dont need to fix it themselve.
expected code:
const SnapBiApiRequestor = require('./snapBiApiRequestor');
https://github.com/Midtrans/midtrans-nodejs-client/blob/master/lib/SnapBi/snapBi.js
thanks for the feedback, what version is this? ah I see, so there's a wrong capitalization ya? the s should be lowercase?
Yes, it should be lowercase
let snap = new midtransClient.Snap({ ^
TypeError: midtransClient.Snap is not a constructor
how to fix
Coba kayak gini pas importnya.
import {Midtrans} from 'midtrans-client'
`let snap = new Midtrans.Snap({
})`
NOTE: THE ISSUE OF UPPERCASE in SnapBiApiRequestor still is not fixed yet when i use netlify to test my app, it got error like the issue of number 76.
I created a pull request about fixing the typo. I hope it will be approved.