/
Widget 1.0 (old version) [ENG]

Widget 1.0 (old version) [ENG]

The InPost Pay plugin makes it possible to couple shopping baskets at the online stores of Merchants with the InPost app. The frontend layer is provided in the form of a JavaScript plugin for embedding on the website and this documentation. The backend layer provides data from two sources:

  1. details regarding the store's

  2. data related to InPost Pay provided by requests to InPost API.

The frontend layer assumes the use of the backend layer on the part of the Merchant only and none of the requests is to inquire the InPost API directly.

The correct integration requires delivering the layer of the Merchant Backend API in accordance with the above, the html embedding of the plugin, and deploying all the following methods in the frontend layer.

A list of methods to be implemented by the Merchant's backend, in order to use the plugin:

  • iziGetIsBound

  • iziGetOrderComplete

  • iziBindingDelete

  • iziCanBeBound

  • iziAddToCart

  • iziGetPayData

  • iziMobileLink

  • iziGetBrowserData

List of events which need to be implemented in order to use the plugin:

inpost-update-count


Script download

The script of the plugin is available at:

Embed it in your website by:

<script src="https://izi.inpost.pl/inpostizi.js"></script>

 

 

Html embedding

In order to display the widget, embed the following code in html:

<inpost-izi-button name="" masked_phone_number="" data-product-id="" language="pl" variant="primary" basket="true" dark_mode="true" count="5"></inpost-izi-button>

Parameter

Description

name

The buyer's forename, enter if the baskets are paired.