1.0.8 • Published 7 years ago

bca-api v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

BCA API for NodeJS

For users

How to use

  1. npm i -S bca-api
  2. import BCA from 'bca-api' or see sample/index.js test/main.js
  3. Login to BCA developers and modify secret.json.sample
  4. Write some code with await new BCA().index()
  5. Contact to api_support@bca.co.id and plan UAT on Whatsapp

How it works

  • Curl-exec impementation
  • Reference implementation is bca-php
  • Tried to use axios but some difficulty regarding headers format was there. (I'm waiting for your pull-request!)
  • bca-php worked well, so I choosed same way.

Note

  • /src is written to work on node-v8.6.0 or babel-node
  • /dist is exported by babel to wrok on node-v6.9.5
  • client_id, client_secret, api_key, api_secret are on dashboard
  • corporate_id is on KlikBCA admin dashboard
  • account_number is your company's bank account number

For commiters!

How to start development

  • npm run install
  • npm run test:local
  • Get secret.json by referring Note section above
  • npm run test:sandbox

###How to publish as npm module

  • Write some code and update version on package.json
  • Once delete node_modules then npm run test:sandbox npm run build node index.js for confirming no error over current package.json
  • git tag <your version>
  • !!! Please confirm you're not adding your secret.json !!!
  • npm publish

Future plan

  • Further testability
  • Modern HTTP adaptor
  • Multiple amount bank account handling for scalability
1.0.8

7 years ago

1.0.7-alpha.5

7 years ago

1.0.7-alpha.4

7 years ago

1.0.7-p2

7 years ago

1.0.7-p1

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.0

7 years ago