It looks like you're not authorized to view this content. The request signature is wrong or expired (sign=a04bbf8b4ad2fab2677604ead15938ea1cfe840d780a98fc204fe4478a8c6ad6).
var Paymentwall = require('paymentwall');
Paymentwall.Configure(
Paymentwall.Base.API_GOODS,
'KEY',
'KEY'
);
var widget = new Paymentwall.Widget(
'user40012', // uid
'pw_1', // widget
[
new Paymentwall.Product(
'product301', // ag_external_id
9.99, // amount
'USD', // currencycode
'Gold Membership', // ag_name
Paymentwall.Product.TYPE_FIXED // ag_type
)
], {
'email': 'user@hostname.com',
'history[registration_date]': 'registered_date_of_user',
'ps': 'all', // Replace it with specific payment system short code for single payment methods
'additional_param_name': 'additional_param_value'
}
);
let url = widget.getUrl();
console.log(url)
const open = require('open');
// opens the url in the default browser
open(url);
What's the issue? I just copied the code from your documentation, started setting up a shop and it's not working. The example code doesn't work.