Skip to content

shaikahmadnawaz/react-nestjs-stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Stripe Payment Module

This is a sample application implementing a Stripe payment module with React and NestJs.

Deployment

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed
  • Stripe account and API keys (Test mode for development)
  • Git installed

Setup

  1. Clone the repository:

    git clone https://github.com/shaikahmadnawaz/react-nestjs-stripe.git
  2. Navigate to the project directory:

    cd client
  3. Install dependencies:

    # Install server dependencies
    cd server
    npm install
    
    # Install client dependencies
    cd ../client
    npm install
  4. Configure environment variables:

    Create a .env file in the server directory with the following content:

    STRIPE_SECRET_KEY=your_stripe_secret_key

    Replace your_stripe_secret_key with your actual Stripe secret key.

    Create a .env file in the client directory with the following content:

    VITE_STRIPE_PUBLISHABLE_KEY=your_stripe_public_key
  5. Start the server:

    cd ../server
    npm start

    The server will run on http://localhost:3000.

  6. Start the client:

    Open a new terminal window:

    cd ../client
    npm run dev

    The React app will run on http://localhost:5173.

Usage

Visit http://localhost:5173 in your browser to access the Stripe payment page.

View Event Logs

To view event logs, navigate to http://localhost:5173/event-logs.

Issues:

I encountered a specific error related to international payments, in line with Indian regulations. The error states that only registered Indian businesses can accept international payments. I have reviewed my Stripe account settings and ensured compliance with the regulations, but the issue persists.

image

image

Additional Information

  • Make sure to use test API keys during development.
  • Feel free to customize the application based on your requirements.

About

Stripe Payment Module: This is a sample application implementing a Stripe payment module with React and NestJs.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors