Skip to content

novascript-dev/stripe-adapter

Repository files navigation

Nest Logo Nest Logo

stripe-adapter

Introduction:

Use this NestJS microsservice in your project so you can start receiving payments using Stripe Payment Gateway.


Features:

=== User Features
* Create Customer 
* Create Payment Intent
* Confirm Payment Intent

=== Adapter related
- Console and File Logging Middleware (.log)
- Healthcheck for depedencies and infrastructure tools

Advantages of using a adapter

There are many reasons why you should user a adapter such as stripe-adapter.

  • Flexibility and decoupling: if you later need to change your payment gateway for a new one (lets say if you have a problem with Stripe) you can easily decouple features as you want.
  • Easier to test, add and fix integrations.
  • Security improvements with: external data flow control, addition of numerous validation layers and credential handling centralization.
  • Easily treat payment errors which are not under your control with custom treatment.

Install and running

Install dependencies

$ pnpm install

Compile and run the project

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Run tests

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

License

This project is MIT licensed.

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy