12345678910 11121314151617181920# Paymentwall Ruby Library: # https://www.paymentwall.com/lib/ruby require_relative '/path/to/paymentwall-ruby/lib/paymentwall.rb' Paymentwall::Base::setApiType(Paymentwall_Base::API_VC) Paymentwall::Base::setAppKey('t_93008515b6d111a9435840d3784b6e') Paymentwall::Base::setSecretKey('t_bc9268c0dedbdbfdc0eac5fce44ca9') widget = Paymentwall::Widget.new( 'user40012', 'w1', [], { 'email' => 'user@hostname.com', 'any_custom_parameter' => 'value'} ) puts widget.getHtmlCode()
12345678910 11121314151617181920// 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_VC, 'public_key' => 't_614361aa52031dd26f4cba5d1fe459', 'private_key' => 't_75d2390ca1cca7dea094450b0960f8' )); $widget = new Paymentwall_Widget( 'user40012', 'w1', array(), array('email' => 'user@hostname.com', 'any_custom_parameter' => 'value') ); echo $widget->getHtmlCode();
12345678910 11121314151617181920# Paymentwall Python Library: https://www.paymentwall.com/lib/python from paymentwall import * Paymentwall.set_api_type(Paymentwall.API_VC) Paymentwall.set_app_key('t_614361aa52031dd26f4cba5d1fe459') Paymentwall.set_secret_key('t_75d2390ca1cca7dea094450b0960f8') widget = Widget( 'user4522', 'w1', [], { 'email': 'user@hostname.com', 'any_custom_parameter': 'value'} # additional parameters ) print(widget.get_html_code())
12345678910 11121314151617181920var Paymentwall = require('paymentwall'); Paymentwall.configure( Paymentwall.Base.API_VC, 't_614361aa52031dd26f4cba5d1fe459', 't_75d2390ca1cca7dea094450b0960f8' ); var widget = new Paymentwall.Widget( 'user40012', 'w1', [], { 'email': 'user@hostname.com', 'any_custom_parameter': 'value'} ); console.log(widget.getHtmlCode());
12345678910 11121314151617181920<iframe src="https://api.paymentwall.com/api/ps ?sign_version=3 &sign=SIGNATURE &email=user%40hostname.com &key=t_614361aa52031dd26f4cba5d1fe459 &uid=user42 &widget=w1" frameborder="0" height="800" width="750"> </iframe>