|
|
A Xendit Node SDK wrapper for NestJS framework
THIS IS NOT AN OFFICIAL PACKAGE FROM XENDIT OR NESTJS
NPM:
npm i --save nestjs-xendit
Yarn:
yarn add nestjs-xendit
Sync:
XenditModule.register({
secretKey: "XENDIT_KEY"
})
Async:
XenditModule.registerAsync({
useFactory: (configService: ConfigService) =>{
return {
secretKey: configService.get('XENDIT_KEY')
}
},
inject: [ConfigService]
})
Contributions are always welcome!
Feel free to patch / edit / optimize / add features. PR are Welcome.