diff --git a/giftcard-example/public/js/adyenGiftcardImplementation.js b/giftcard-example/public/js/adyenGiftcardImplementation.js index b374246..04fd1c0 100644 --- a/giftcard-example/public/js/adyenGiftcardImplementation.js +++ b/giftcard-example/public/js/adyenGiftcardImplementation.js @@ -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