Skip to content

chy168/line-pay-sdk-go

Repository files navigation

GitHub license GoDoc

line-pay-sdk-go

LINE Pay API SDK for Go LINE Pay Developers Website

Supported LINE Pay v3 APIs


  • Request API
  • Confirm API
  • Capture API (not test yet)
  • Void API
  • Refund API
  • Payment Details API
  • Check Payment Status API
  • Check RegKey API
  • Pay Preapproved API
  • Expire RegKey API

Usage

go get -v github.com/chy168/line-pay-sdk-go

How to test

develop

replace necessary information in data_test.go, then you can go test what you want to try.

test

there is a built in web server to perform confirm api by transaction (can be used as confirmURL)

go run examples/cmd/callback_server.go --channel-id=<YOUR_CHANNEL_ID> --channel-secret=<YOUR_CHANNEL_SECRET>

LICENSE

Apache 2.0

Releases

No releases published

Packages

No packages published

Languages