Skip to content

Frontware/promptpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo

PromptPay

Generate QRCode for Thai PromptPay

Golang API to generate QRCode

Build on your computer

Install dependencies

make init

Build

make build

Example

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)

Documentation

API

https://godoc.org/github.com/Frontware/promptpay

Specifications

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.

About

Generate QRCode for Thai Promptpay

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •