Logo: Relish

  1. Sign in

Project: Monty

Payment using gift card

  • @GiftCard
  • @wip

As a customer
I would like to be able to pay for all or part of my order using a gift card
so that I don't have to pay the full amount in money

MON-813: Entering a Gift Card as payment

Background
Given
the set up is done
And
login with clean basket for [email protected] and password password1
Scenarios
  • @MON-813
A customer pays an order using gift card
And
The shopping bag contains a high value product over £100
And
I checkout as the logged in user
And
I checkout to the billing page
And
I enter the gift card 6337850092404218 and the pin 8397
When
I submit the gift card for verification
Then
I see success message with 'total amount of discount applied to the order is' displayed
And
I should see the amount used on the gift card as £36.00 GiftCard-amountUsed
  • @MON-813
A customer tries to pay an order using invalid gift card number
Given
I am an authenticated customer with checkout
And
The shopping bag contains a product
And
I am on the checkout summary page
And
I am in payment details section
And
I expand the accordion titled "Gift card"
When
I enter a value as "411567896" for "Gift Card Number"
Then
I see error message "Please enter a valid Giftcard number"
  • @MON-813
A customer tries to pay an order using invalid gift card pin
Given
I am an authenticated customer with checkout
And
The shopping bag contains a product
And
I am on the checkout summary page
And
I am in payment details section
And
I expand the accordion titled "Gift card"
And
I enter a value as "411567896562365" for "Gift Card Number"
When
I enter a value as "1234" for "pin"
Then
I see error message "PIN should be at least 4 digits"
  • @MON-813
A customer views error when payment is rejected
Given
I am an authenticated customer with checkout
And
The shopping bag contains a product
And
I am on the checkout summary page
And
I am in payment details section
And
I expand the accordion titled "Gift card"
When
I enter a value as "411567896562365" for "Gift Card Number"
And
I enter a value as "1234" for "pin"
And
I submit "Verify code"
Then
I see error message "I'm sorry, your gift card was recognized. Please check the details and try again"
  • @MON-813
A customer uses another gift card to pay an order
Given
I am an authenticated customer with checkout
And
The shopping bag contains a product
And
I am on the checkout summary page
And
I am in payment details section
And
I expand the accordion titled "Gift card"
And
I enter a value as "411567896562365" for "Gift Card Number"
And
I enter a value as "1234" for "pin"
When
I submit "Verify code"
And
I can see the success message with total amount of discount applied
Then
I see "Use another Gift Card" link entry fields again.
And
I see the total in the bag is updated to reflect the value of the gift card used

Last published over 3 years ago by keith ford.