Skip to content

implementation of stripe in nodejs with custom form && implementation of stripe hosted page, stripe webhook stripe connected account, stripe transfer stripe payout

Notifications You must be signed in to change notification settings

muhammad-hamza-liaqat/stripe-implementation-in-nodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Payment Integration

Endpoints

Checkout Session

Endpoint: GET http://localhost:3000/api/payment/product

Description: This endpoint allows you to redirect to the Stripe-hosted checkout page when accessed in the browser.

Create Payment Intent

Endpoint: POST /api/payment/create-payment-intent

Description: Creates a payment intent for a given user and amount.

Request Body:

{
  "name": "test user",
  "email": "test@test.com",
  "phone": "03002888260",
  "address": {
    "line1": "chowk azam",
    "city": "Faisalabad",
    "postal_code": "54203",
    "country": "PK"
  },
  "amount": 900,
  "currency": "usd",
  "paymentMethodType": "card",
  "cardNumber": "4242424242424242",
  "expMonth": 12,
  "expYear": 2025,
  "cvc": "123"
}

command to make local tunnel for secure web request i-e (https)

npx localtunnel --port 3000 --subdomain stripe-server

About

implementation of stripe in nodejs with custom form && implementation of stripe hosted page, stripe webhook stripe connected account, stripe transfer stripe payout

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published