Skip to main content
Embed can be configured in a few ways.

Setup with element & form

Embed expects the query for two HTML elements to attach itself to. The values for these elements are a query string that can be parsed by document.querySelector. For example, <div class="container"></div> would be represented as .container, while <form id="cardform"> would be represented by #cardform.
These elements are not required when using Embed for React as this component handles the form submission in a more React friendly way.

Options

The options for this integration are as follows.
The instance ID is the unique identifier for the deployment of the system and is included in every API call. Together with the environment (sandbox or production) it is used to connect to the right APIs, as well as dashboard.

Environment

Embed defaults to production environment. To use Embed in sandbox, set the environment option to sandbox.

Cart items (optional)

Optionally, you may pass the contents of your shopping cart to Embed using the cartItems option. Where supported, cartItems are available to view alongside the transaction details in your Payment Service Provider.
Properties
Cart items are for information purposes only and do not affect the transaction amount that is charged. You should ensure that amount is set correctly to avoid failing transactions.

Further reading