Skip to content

sanae10001/paymentwall-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paymentwall Go Library

Unofficial Paymentwall Go Library

TODO

  • Pingback Processing
    • Digital Goods
    • Virtual Currency
    • Cart
  • Widget Call
  • Coverage test

Reference

Code Samples

Digital Goods API

Pingback Processing

import (
	"fmt"
	
	"github.com/sanae10001/paymentwall-go"
)

pingback := paymentwall.NewPingback(values, ip, paymentwall.API_GOODS, PaymentwallSecretKey)

if pingback.Validate(false) {
	if pingback.IsDeliverable() { 
		// deliver the product
	} else if pingback.IsCancelable() {
		// withdraw the product
	}
} else {
	fmt.Println(pingback.GetError())
}

About

Unofficial Paymentwall Go Library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages