Documentation
1
Choose your API
Digital Goods
Monetize digital products or services with recurring billing
Virtual Currency
Monetize projects with virtual currency economy
Cart
Sell multiple items with optional DRM
Brick
Unified credit card payments API
Digital Goods API allows you to sell: premium membership with recurring billing, digital goods, in-game virtual items and services.
Full API reference
Full API reference
2
Integrate widget
3
Set up payment notification
$pingback = new Paymentwall_Pingback($_GET, $_SERVER['REMOTE_ADDR']);
if ($pingback->validate()) {
$productId = $pingback->getProduct()->getId();
if ($pingback->isDeliverable()) {
// deliver the product
} else if ($pingback->isCancelable()) {
// withdraw the product
}
echo 'OK';
} else {
echo $pingback->getErrorSummary();
}
Whenever a user pays or completes an offer, we send you a server-to-server pingback, also known as callback, postback, or instant payment notification.
To create your pingback listener, please use this code sample.
Once the pingback listener is hosted on your servers,
put the URL of this listener as the Pingback URL inside of your Project Settings.