Checkout
Understanding the attributes needed to capture shipping/billing information and process payment.
Please note that this document is still Work in Progress. It might be updated, revised, or changed entirely in the near future.
Since the Checkout page involves more nuisance cases to be mindful of, we've added additional attributes to account for unique scenarios like (multi-step form, hide specific elements after an successful payment, etc). Below will highlight and guide you through the full process to convert your page into a fully-functional checkout page.


pc-accitemDefine parent element to function as an accordion
pcaccordion-headingDefine the label for the accordion
pc-hideHide element after an successful checkout action
The checkout page is built upon three mandatory attributes that powers the final step of the eCommerce experience, these are (shipping/billing, payment, & order status). These are the overarching elements that wraps all your inputs to validate and equipped for a transaction.
pc-stepshipping-billingParent element to capture and validate shipping and/or billing information
pc-steppaymentParent element to capture and insert the chosen payment processor fields
pc-stepstatusParent element to display the status of the transaction once submitted
pcshipping-methods-containerParent element for shipping options
shipping-methodDefine element for a shipping option (radio wrapper*)
shipping-radioElement to select a shipping option (radio button*)
shipping-labelElement to display shipping option name (radio label*)
add-to-cartDefine button that triggers submit action
billing_nameBilling first name
billing_lastnameBilling last name
billing_addressBilling address line 1
billing_address2Billing address line 2
billing_zip_codeBilling zip code
billing_cityBilling city
billing_countryBilling city (select*)
billing_stateBilling state/province (select*)
same-shipping-billingDefine shipping is same as billing (checkbox button*)
nameShipping first name
lastnameShipping last name
addressShipping address line 1
address2Shipping address line 2
zip_codeShipping zip code
cityShipping city
countryShipping city (select*)
stateShipping state/province (select*)
emailCapture customer email
phoneCapture customer phone
check_termsDefine element for consent
accordion-buttonDefine button to proceed to next steps in checkout
checkout-payment-form-stepDefine payment form to inset chosen payment gateway
card-namePayment name on card
card-numberPayment card number
card-expirationPayment card expiration
card-cvvPayment card cvv
payment-buttonDefine button to submit card details to payment gateway
order-status-titleElement to display transaction status after submitting
order-status-messageElement to display status message
order-status-back-buttonDefine a button to go back to the homepage
You'll notice from screenshots above that an summary section exists, these attributes are the consistent across each page and can be reused here as well. If you would like to view each, please go to the previous step or here.
Last updated
Was this helpful?