From 46458135d13b79987d10ee749884ead04a44fd1d Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:56:21 +0200 Subject: [PATCH] Specify giftcard brand (#472) --- .../public/js/adyenGiftcardImplementation.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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