Unofficial Paymentwall Go Library
- Pingback Processing
- Digital Goods
- Virtual Currency
- Cart
- Widget Call
- Coverage test
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())
}