New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kite-tech/web-app-sdk

Package Overview
Dependencies
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kite-tech/web-app-sdk

Prodigi print on demand shop SDK

  • 2.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Prodigi Print Shop SDK

Prodigi offers white label print on demand portals so you can sell to your users under your brand.

This SDK is compatible with the Prodigi Print on Demand Shop. Get your own branded instance at Prodigi Apps Dashboard.

With the Print Shop SDK, you can integrate your print shop app into your own site, launching it with pre-configured data, such as images, at run-time.

Table of Contents

Demo and examples

For a list of common use-cases and a demo sandbox visit: https://sdk.prodigi.com/print-shop

Installation

Install using NPM:

npm install @kite-tech/web-app-sdk

Usage

Import the package:

import { KiteWebAppSdk } from '@kite-tech/web-app-sdk';

Launch your shop using the launchFromJSON function and pass in your desired configuration:

const printShopConfig = {
    baseUrl: 'https://shop.prodigi.com/prodigi'
};

KiteWebAppSdk.launchFromJSON(printShopConfig);

API

PropertyTypeRequiredDescription
baseUrlstringYESThe complete URL of your shop
configConfigObjectNOSpecify additional properties for launch
checkoutUserFieldsCheckoutUserFieldsObjectNOUser details to populate on checkout
collectorImagesCollectorImagesArrayNOImages passed in to your shop that can be applied to different products

ConfigObject

PropertyTypeRequiredDescription
startInNewTabbooleanNOOpens your shop in a new tab/window. Default is false
customer_idstringNOCustom identifier associated to your user

CheckoutUserFieldsObject

PropertyTypeRequiredDescription
shippingAddress
 {
recipient_first_name: string,
recipient_last_name: string,
address_line_1: string,
address_line_2: string,
city: string,
county_state: string,
postcode: string,
country: string,
}
NOUser shipping address to populate on checkout. All values are optional
customerEmailstringNOSets the user's email address when they reach the checkout
termsOfServicebooleanNOSets whether to automatically agree to terms of service on checkout

CollectorImagesArray

An array of objects having the following properties:

PropertyTypeRequiredDescription
dimensions
 {
width: number,
height: number
}
YESThe dimensions of the image URL specified
idstringYESUnique ID for the image
isUploadCompletebooleanYESSpecify whether the image upload is complete
thumbnailUrlstringYESLower resolution image URL, used for rendering previews in the browser
urlstringYESFull resolution image URL, used for printing

Keywords

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc