Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 978 Bytes

08-payments-service.md

File metadata and controls

65 lines (39 loc) · 978 Bytes

[Stephen Grider] Microservices with Node JS and React [ENG, 2021]


Payments Service


21. Handling Payments

$ cd payments
$ npm install --save mongoose-update-if-current
$ npm install --save stripe

stripe.com

Developers --> API keys


Creating a Stripe Secret

$ kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<STRIPE_SECRET_KEY>

$ cd payments
$ npm update @webmak/microservices-common

Need to add <YOUR_STRIPE_PRIVATE_SECRET> for tests to file


payments/src/test/setup.ts


$ npm run test

Test Suites: 3 passed, 3 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        15.825 s
Ran all test suites.



Marley

Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат