Skip to content

Commit

Permalink
Specify giftcard brand (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Jun 13, 2024
1 parent 3920c80 commit 4645813
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions giftcard-example/public/js/adyenGiftcardImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ function mountGiftcardComponentButton(checkout) {
// Adds gift card container and the eventlistener
document.getElementById("add-giftcard-button")
.addEventListener('click', async () => {
// Create the gift card component
const giftcardComponent = checkout.create("giftcard");
// Create the gift card component for Givex
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 4645813

Please sign in to comment.