Until further notice we will be entirely focused on improvements to our API and ecommerce integrations
The widget is an incredibly simple white-labeled solution to sell printed products entirely in your own site– no redirects to other pages, no “sharing” of customers and/or customer data. The entire transaction takes place seamlessly within your site, and we never use/reuse/share your customer data.
If you’re looking for something more lightweight than this, perhaps just a wrapper over our API, please check out our client-side js library.
The widget does not pollute any of the page’s CSS/JS. All of the JS is placed under the
PIO namespace and all of the CSS is inline.
In order to get started with the widget, you need to get an api key (which we call
RecipeId). This can be obtained by signing up. By default, the widget is setup to run against our staging environment; in the staging environment no items get submitted, and no real charging occurs. It’s easy to switch to live when you’re ready to release.
One of the widget’s goals is to be entirely customizable and extensible to as many use cases as possible. To this end, developers can control both the style and the functionality/flow via its simple JS API.
Note that customers that use our widget also tend to use either our orders GET endpoint/API or our webhooks solution to have order/customer data sync-ed back into their systems. Of course, this is entirely optional.
We recommend you place the code for embedding and configuring side by side.
The pio.js script is hosted on an https-ready CDN at https://az412349.vo.msecnd.net/pio/pio.latest.v2.js.
After one has embedded the script one can then configure the widget using the
Now that we have it configured, we can easily have the widget launch by attaching the open function to a button:
Or perhaps we could pass an image into the widget when we open it:
And thats it!
We offer a testing mode for partners to test with before they go live. The default setting is live. Switching to test is pretty simple though– merely pass in the appropriate setting to the widget:
It seems that you do not have a default email client set up in your browser. Don’t worry, you can still contact us – Simply copy the address below to your email client of choice.