For this exercise you'll be implementing a Processor connection using Stripe's API
Note: you are required to not use Stripe's node SDK.
You'll need to create an account with Stripe and log in to the dashboard. Once you've done that, you should be able to find an API Key in the developer section.
There are 4 parts to the exercise:
- Add your sandbox credentials to
Stripe.ts
- Implement the
authorize()
method inStripe.ts
- Implement the
capture()
method inStripe.ts
- Implement the
cancel()
method inStripe.ts
Feel free to tackle these in the order that makes most sense to you.
- Check out Stripe's PaymentIntents API
- There is an
HTTPClient
implementation in./common
that you may use, we've already imported it intoStripe.ts
for you. Remember though, you can't use Stripe's SDK. - If anything is unclear, Don't hesitate to reach out
To run the program use the following command:
yarn start:processors
Happy Coding :D