From 7c7a4d3c062e91eda1c9f8f8e3397dbf03e56b6d Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:13:23 +0200 Subject: [PATCH] Add givex brand when creating the giftcard component (#148) --- giftcard-example/wwwroot/js/adyenGiftcardImplementation.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/giftcard-example/wwwroot/js/adyenGiftcardImplementation.js b/giftcard-example/wwwroot/js/adyenGiftcardImplementation.js index 1107bfc4..060571d7 100644 --- a/giftcard-example/wwwroot/js/adyenGiftcardImplementation.js +++ b/giftcard-example/wwwroot/js/adyenGiftcardImplementation.js @@ -41,7 +41,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