Skip to content

EduartePaiva/payment-gateways

Repository files navigation

Payment Gateways

This is a resource project where I integrate multiples payment gateways using Go as the backend and React.js (typescript) in the frontend.

I’m selling a “Mistery Box” as an example item for this project.

The objective is for this project to be a future resource for me and others developers who wants to implement payments on their system.

Images

Front page

image.png

Stripe payment

image.png

Email received when payment is confirmed

image.png

Technologies

Here are the technologies used in this project.

  • Golang
  • Typescript
  • React.js
  • MongoDB
  • Redis
  • Docker
  • Docker Compose
  • Nginx
  • Stripe SDK
  • Paypal API
  • Resend

Currently supported payment gateways

Gateway Status
Stripe Completed
Paypal In development
Mercado Pago In development

Getting Started

  • Dependencies
    • Docker
    • Docker Compose
    • Makefile
  • To build the containers:

$ make build-prod

  • To run the project:

$ make up-prod

How to Use

Set up the required environment variables ashed in /pkg/env/env.go, then start experimenting and using this repo as a reference to implement your own payment.

Features

The main features of the application are:

  • Frontend for buying a item.
  • Checkout implementation for payments.
  • Webhook implementation for payments.
  • Confirmation email with resend.
  • Saving payment on MongoDB

Authors

  • Eduarte Paiva de Oliveira

Please follow on GitHub and join us! Thanks for visiting and happy coding!

About

Implementation of usage of multiples payments gateways, including webhooks, database, and email

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors