The functionality will be =
- Enter Gift Card number(16 digit)
- Enter Gift Card Pin(6 digit)
- Enter Amount(amount entered by user)
I have already created the above mentioned input fields in the cart page.but dont know how to proceed further.
cart page view: https://www.happyvalleytea.com/checkout/cart/ (add any product to cart)
When the user clicks on gift card apply button, the transaction will happen on a 3rd party vendor(via curl api call). The response received from the api should be used as a discount amount on the cart page.