Skip to content

Go Language 아임포트 Rest API Client - 개발 진전이 너무 느리니 나 쓸꺼 내가 더 붙이겠습니다.

License

Notifications You must be signed in to change notification settings

aucshow-wjb/go-iamport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-iamport

Go Language 아임포트 Rest API Client
https://api.iamport.kr

설치

$ go get github.com/mgsmurf/go-iamport

예제

client := &http.Client{} // 상황에 맞는 클라이언트 사용
iam := iamport.NewClient("<your_api_key>", "<your_api_secret>", client)
pay, err := iam.GetPaymentImpUID("<some imp_uid>")
if err != nil {
  fmt.Println(err)
  return
}

fmt.Println(pay.Amount)
fmt.Println(pay.MerchantUID)

App Engine

client := urlfetch.Client(ctx)
iam := iamport.NewClient("<your_api_key>", "<your_api_secret>", client)
...

구현되어있는 기능 - https://api.iamport.kr

  • authenticate
    • POST /users/getToken
  • payments
    • GET /payments/{imp_uid}
    • GET /payments/find/{merchant_uid}
    • GET /payments/status/{payment_status}
    • POST /payments/cancel
  • payments.validation
    • POST /payments/prepare
    • GET /payments/prepare/merchant_uid

미구현

  • subscribe
    • POST /subscribe/payments/ontime
    • POST /subscribe/payments/again
    • POST /subscribe/payments/schedule
    • POST /subscribe/payments/unschedule
  • subscribe.customer
    • DELETE /subscribe/customers/{customer_uid}
    • GET /subscribe/customers/{customer_uid}
    • POST /subscribe/customers/{customer_uid}

About

Go Language 아임포트 Rest API Client - 개발 진전이 너무 느리니 나 쓸꺼 내가 더 붙이겠습니다.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%