Skip to content

Commit

Permalink
Add givex brand when creating component (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: Beppe Catanese <[email protected]>
  • Loading branch information
gcatanese and Beppe Catanese authored Oct 14, 2024
1 parent e5bd5e6 commit 4d04ad6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ function mountGiftcardComponentButton(checkout) {
document.getElementById("add-giftcard-button")
.addEventListener('click', async () => {
// Create the gift card component
const giftcardComponent = checkout.create("giftcard");
const giftcardComponent = checkout.create("giftcard",
{
type: 'giftcard',
brand: 'givex'
}
);
giftcardComponent.mount("#giftcard-container");

// Binds event listener to the 'Go back'-button for the gift card component
Expand Down

0 comments on commit 4d04ad6

Please sign in to comment.