Skip to content

Created an api using the golang's gin framework for payment processing through stripe. Easy to integrate with the application.

Notifications You must be signed in to change notification settings

husnainkhurshiid/stripe-golang-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Golang API

Created an api using the golang's gin framework for payment processing through stripe. Easy to integrate with the application.

URL

API end point

http://localhost:8080/charge

API Body

API body parameters are below

{
  "name": "John Doe",
  "email": "johndoe@example.com",
  "amount": 1000,
  "currency": "usd",
  "desc": "Test payment",
  "line1": "Primary address",
  "line2": "Secondary address ",
  "city": "Islamabad",
  "state": "ICT",
  "postal_code": "45400",
  "country": "Pakistan",
  "card":{
    "number":"4242424242424242",
    "exp_month": "12",
    "exp_year": "2024",
    "cvc": "123"
  }
}

About

Created an api using the golang's gin framework for payment processing through stripe. Easy to integrate with the application.

Topics

Resources

Stars

Watchers

Forks

Languages