Skip to content

Commit

Permalink
Add givex brand when creating the giftcard component (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Oct 14, 2024
1 parent 6a8c019 commit 7c7a4d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion giftcard-example/wwwroot/js/adyenGiftcardImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c7a4d3

Please sign in to comment.