Skip to content

Parameter key or uid is missing (error code 05) #23

@webstudiopro

Description

@webstudiopro

Hello,
I have an error:
Parameter key or uid is missing (error code 05)
My widget in my express controller is:

<code> var widget = new Paymentwall.Widget(
user._id, // id of the end-user who's making the payment
'mw1_1', // widget code, e.g. pw; can be picked in the Widgets section of your merchant account
[ // product details for Flexible Widget Call.
// Leave empty if product selection happens on Paymentwall's side
new Paymentwall.Product(
'test sku id', // id of the product in your system
10, // price
'EUR', // currency code
'In the picture', // product name
// if it is a onetime charge product, you don't need to configure time-based part
Paymentwall.Product.TYPE_SUBSCRIPTION, // this is a time-based product
1, // length of product period
Paymentwall.Product.PERIOD_TYPE_MONTH, // type of product period
true // this is a recurring product
)
],
{'email': user.email} // additional parameters. for full list check API docs
);
console.log(widget.getHtmlCode());
return res.send(widget.getHtmlCode()); </code>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions