Giter Site home page Giter Site logo

levi-putna / payment-gateways Goto Github PK

View Code? Open in Web Editor NEW

This project forked from premprakashcodes/payment-gateways

0.0 0.0 0.0 3.06 MB

This project demonstrates the integration of multiple payment gateways, including Stripe, Razorpay, PayPal and Coinbase using Next.js 14. It showcases how to implement these popular payment solutions in a web application.

Home Page: https://payment-gateways-demo.vercel.app

License: MIT License

JavaScript 0.71% TypeScript 97.39% CSS 1.90%

payment-gateways's Introduction

Payment Gateways Demo

This project demonstrates the integration of multiple payment gateways, including Stripe, Razorpay, PayPal, and Coinbase, using Next.js 14. It showcases how to implement these popular payment solutions in a web application.

Live Demo

Check out the live demo here.

Features

  • Multiple Payment Gateways: Integration with Stripe, Razorpay, PayPal, and Coinbase.
  • Next.js 14: Built with the latest features and capabilities of Next.js.
  • User-Friendly UI: Simple and intuitive interface for making payments.
  • Responsive Design: Optimized for all devices, including mobile and desktop.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/PremPrakashCodes/payment-gateways.git
  2. Navigate to the project directory:

    cd payment-gateways
  3. Install dependencies:

    npm install
  4. Set up environment variables:

    Create a .env.local file in the root directory and add the necessary API keys and configuration settings for the payment gateways.

    NEXT_PUBLIC_BASE_URL=http://localhost:3000
    
    NEXT_PUBLIC_STRIPE_PUBLIC_KEY=
    STRIPE_SECRET_KEY=
    STRIPE_WEBHOOK_SECRET=
    
    NEXT_PUBLIC_RAZORPAY_KEY_ID==
    RAZORPAY_KEY_SECRET=
    
    PAYPAL_CLIENT_ID=
    PAYPAL_CLIENT_SECRET=
    
    COINBASE_API_KEY=
    COINBASE_WEBHOOK_SECRET=
    
  5. Run the development server:

    npm run dev
  6. Open your browser: Visit http://localhost:3000 to see the app in action.

Usage

Select a payment gateway from the available options, enter the required payment details, and proceed with the payment. The demo showcases a straightforward integration process for each gateway.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request. For major changes, please open an issue to discuss what you'd like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

Contact

If you have any questions or feedback, feel free to reach out!

LinkedIn


payment-gateways's People

Contributors

premprakashcodes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.