Generate QRCode for Thai PromptPay
Golang API to generate QRCode
make init
make build
import pp "github.com/Frontware/promptpay"
func main() {
// Default values are Thailand and THB
myPayment := pp.NewPayment()
myPayment.Amount = 45.10 // THB
// Set a tax ID, can be phone number or thai citizen ID
myPayment.Account = "0105540087061"
qrcode := myPayment.String()
fmt.Println("QRCode string ", qrcode)https://godoc.org/github.com/Frontware/promptpay
EMV QR Code specification: https://www.emvco.com/wp-content/plugins/pmpro-customizations/oy-getfile.php?u=/wp-content/uploads/documents/EMVCo-Consumer-Presented-QR-Specification-v1.pdf
© 2018 Frontware International. All Rights Reserved.
