Paymentwall website uses cookies to store your browsing preferences on your device. However, cookies do not collect personal information.

For more information about how we use cookies, check our cookie policy

Close
Documentation
New Documentation Getting Started API Libraries APIs Checklists Flows Integrations Mobile SDKs Reference Smart TV SDK SpiderPipe Testing Payments
Contacts
If you still have questions regarding integration, please email us at devsupport@paymentwall.com

Integration Checklist

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
   
2

Integrate widget

Multi
Uni
Mobile
2-Click

Choose your programming language

Integrate this code to your website

PHP
Python
Ruby
Node.js
Web API
// Paymentwall PHP Library: https://www.paymentwall.com/lib/php
require_once('/path/to/paymentwall-php/lib/paymentwall.php');
Paymentwall_Config::getInstance()->set(array(
    'api_type' => Paymentwall_Config::API_GOODS,
    'public_key' => '[PUBLIC_API_KEY]',
    'private_key' => '[PRIVATE_API_KEY]'
));

$widget = new Paymentwall_Widget(
    'user40012',
    'p10',
    array(
        new Paymentwall_Product(
            'product301',                           
            9.99,                                   
            'USD',                                  
            'Gold Membership',                      
            Paymentwall_Product::TYPE_FIXED
        )
    ),
    array('email' => 'user@hostname.com', 'history[registration_date]' => '1445950321', 'customer[firstname]' => 'firstname', 'customer[lastname]' => 'lastname', 'customer[country]' => 'DE', 'history[registration_email_verified]' => '1', 'history[payments_number]' => '10', 'history[payments_amount]' => '355.01', 'history[was_banned]' => '0', 'history[cancelled_payments]' => '2', 'any_custom_parameter' => 'value')
);
echo $widget->getHtmlCode();

Sample uses

Your API keys

Project key:
Secret key:
You will get your live keys once you Sign Up

Most popular widget. Shows all payment methods relevant for the user according to his location and according to your settings. Works best on full screen devices.

 
 
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();
}

Your API keys

Project key:
Secret key:
You will get your live keys once you Sign Up
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.
4

Create paymentwall account

To Go Live with Paymentwall and get live credentials please complete the Sign Up process
This page needs JavaScript
Your browser is
not supported anymore.
Please update to the more recent one.
This page needs JavaScript
This page needs JavaScript.
Please enable it in your browser settings and try again.
We use cookies on this website to make your browsing experience better. By using the Paymentwall website you agree to our Cookies Policy.