-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gift card #660
Comments
Hey @aykodesmedt, have you tried using the following: let checkout = await this.$shopify.checkout.create();
const giftCardCodes = ['yourGiftCardCodes', 'anotherOne'];
checkout = await this.$shopify.checkout.addGiftCards(checkout.id, giftCardCodes); It's not document yet, but would add to the documentation / types if it works! |
Hi @Gomah, Yes, I've tried that. When I use the code above, I get an array in the checkout |
Hi! Have you been able to figure out something more about how to do this? |
@aykodesmedt Didn't get much time to look at it yet, feel free to email me with more details 👍🏻 |
This code works, but the |
Is is currently possible to accept gift cards? A gift card code doesn't seem to work with
addDiscount
.The text was updated successfully, but these errors were encountered: