Skip to content
Chase Wiseman edited this page Feb 12, 2020 · 1 revision

The following steps cover the Apple Pay functionality as it currently exists. For testing, you can use Authorize.Net.

Setup

  • Product A: simple shippable & taxable product
  • Product B: simple virtual taxable product
  • Product C: variable product with a few variations
  • 1 tax rate that applies to your iCloud address
  • 1 shipping method with a cost
  • 1 free shipping option
  • 1 shipping method that doesn’t apply to your iCloud address
  • 1 fee applied to the cart via filter

Each test should be performed with a fresh browser session in incognito mode

Test 1

Tests all of the base functionality for generating the payment UI, keeping it up to date with correct shipping & tax rates, and order generation.

  1. Visit Product A’s single page
    • The Apple Pay button should be present and read “Buy with  Pay”
  2. Click the Apple Pay button
    • Add to cart UI is blocked
    • Subtotal is correct
    • Shipping total is correct
    • Fee total is correct
    • Taxes total is correct
    • Grand total is correct
    • An appropriate shipping method is pre-selected
    • The correct shipping methods are available for selection
    • The method that doesn't apply to your address is not present
  3. Switch to the free shipping method
    • Totals are updated correctly
  4. Switch your shipping address to something that applies to the second shipping method
    • That method is listed and selected
    • The totals are correct
  5. Place the order
    • Order is successful
    • Taken to Thank You page
    • Your cart is empty
    • The order has the correct line items and totals in the admin
    • A "Apple Pay payment authorized." note has been added
    • A transaction note was added with card last four and transaction ID
    • The transaction appears in the gateway merchant account
  6. Return to the Product A page
  7. Click "Buy" again, but do not change any selections on the Apple Pay UI
  8. Confirm the payment
    • Order is successful
    • Totals are correct

Test 2

  1. Visit Product B
  2. Click "Buy"
    • No shipping address details are shown
  3. Confirm payment
    • Order is successful
    • No shipping was added

Test 3

  1. Visit Product C
    • No Apple Pay button is visible
  2. Select a variation
    • No Apple Pay button is visible

Test 4

  1. Add Product A to the cart & visit the cart page
    • Apple Pay button is visible
  2. Click Apple Pay
    • The totals are correct
  3. Cancel Apple Pay
  4. Increase the Product A quantity to 2
  5. Click Apple Pay
    • The totals are correct
  6. Confirm payment
    • Order is successful
    • Totals are correct

Test 5

  1. Add Product A to the cart
  2. Visit Checkout
    • Apple Pay button is visible
  3. Click Apple Pay
    • Totals are correct
  4. Confirm payment
    • Order is successful
    • Totals are correct