$ cd payments
$ npm install --save mongoose-update-if-current
$ cd payments
$ npm run test
CREATE TICKET
CREATE ORDER
$ npm install --save stripe
stripe.com
Developers --> API keys
$ kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<STRIPE_SECRET_KEY>
https://stripe.com/docs/api/charges/create
$ cd payments
$ npm update @grider-ms-tickets/common
restart skaffold dev
CREATE TICKET
CREATE ORDER
// CREATE PAYMENT
$ curl \
--insecure \
--cookie /tmp/cookies.txt \
--data '{"orderId":"5ec6c93f6c627e0023725faf", "token": "tok_visa"}' \
--header "Content-Type: application/json" \
--request POST https://ticketing.dev/api/payments/ \
| python -m json.tool
$ cd payments
$ npm update @grider-ms-tickets/common
$ cd orders
$ npm update @grider-ms-tickets/common
$ cd tickets
$ npm update @grider-ms-tickets/common
Marley
Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат