iamport / go-iamport

Go Language 아임포트 Rest API Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-iamport

Build Status codecov

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

설치

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

테스트

$ go test ./... -v

예제

iam, err := iamport.NewIamport("https://api.iamport.kr", "<your_api_key>", "<your_api_secret>")
if err != nil {
  return err
}

pay, err := iam.GetPaymentImpUID("<some imp_uid>")
if err != nil {
  fmt.Println(err)
  return
}

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

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

  • authenticate
    • POST /users/getToken
  • payments
    • GET /payments/{imp_uid}
    • GET /payments
    • GET /payments/find/{merchant_uid}
    • GET /payments/findAll/{merchant_uid}/{payment_status}
    • GET /payments/status/{payment_status}
    • GET /payments/{imp_uid}/balance
    • POST /payments/cancel
  • payments.validation
    • POST /payments/prepare
    • GET /payments/prepare/merchant_uid
  • escrows
    • POST /escrows/logis/{imp_uid}
    • PUT /escrows/logis/{imp_uid}
  • subscribe
    • POST /subscribe/payments/ontime
    • POST /subscribe/payments/again
    • POST /subscribe/payments/schedule
    • POST /subscribe/payments/unschedule
    • GET /subscribe/payments/schedule/{merchant_uid}
    • GET /subscribe/payments/schedule/customers/{customer_uid}
  • subscribe.customer
    • GET /subscribe/customers
    • DELETE /subscribe/customers/{customer_uid}
    • GET /subscribe/customers/{customer_uid}
    • POST /subscribe/customers/{customer_uid}
    • GET /subscribe/customers/{customer_uid}/payments
    • GET /subscribe/customers/{customer_uid}/schedules

TODO

  • vbanks
  • customers
  • payco
  • kakao
  • naver
  • receipts
  • external
  • certifications
  • cards
  • banks

About

Go Language 아임포트 Rest API Client

License:MIT License


Languages

Language:Go 99.8%Language:Shell 0.2%