Add a gift card product to a cart.
quantity of gift cards added to a cart.
Generate gift card preview modal.
Get array of a gift card images
array or gift card images.
Get gift card product options (denomination)
Array of gift card product options
Get interface text and translations object
traslations object
Get gift card product variants
array of product variants
Set gift card data at once
gift card data object
Set delivery date and time
gift card delivery date and time object.
Set delivery email
gift card delivery email
Set current from name.
name of the user sending a gift card.
Set current selected gift card image. (First image is selected by default).
selected variant id
Set current greeting message.
greeting message written by the user.
Set current selected gift card variant by id
selected variant id
Gift card data validation. If email and/or data are set the following fields are mandatory: message, name, deliveryDate, email.
Gift card hero API description
API module loads asynchronous so you need to subscribe to the initalization event
You may find an example of custom interface here:
https://jsfiddle.net/syncubecommerce/k486aLyq/59/ (React)