Payment status

The page back from the payment provider, and the checkout values it reads.

The page a shopper sees back from the payment provider, at the checkout return. It reads the checkout's own data as checkout. Surface payment_status.

States#

The step the page is on is checkout.payment_status.state. The editor previews each state with sample data.

State

The page

verifying

Just back from paying; the page checks the payment every 2 seconds.

confirming

Checking takes longer than 30 seconds. The order is saved and the shopper can leave.

failed

The payment didn't go through. The shopper can try again.

paid

Confirmed; the page goes on to the order confirmation.

What the code must keep#

The status card, <section class="co-card co-status" data-co-payment-status ...>, with its states. Keep it exactly as the default has it.

Keep {{ checkout.styles }} and {{ checkout.icons }}, and the document's </head> and </body>. See the rules for all store pages.

Values#

Every value the page's code can read. [] marks a list item: read it inside {% for item in list %} as item.Name. A value that is empty in a particular case prints nothing; test it with {% if %} first.

Value

Type

Description

checkout.brand_name

Text

The brand name from the checkout appearance, or the store name.

checkout.copy

Object

Every word on the page, in the shopper's language. Each is a storefront message the merchant can change under Customize checkout text.

checkout.copy.checkoutFees

Text

checkout.copy.continue

Text

checkout.copy.designProof

Text

checkout.copy.discountTotalLabel

Text

checkout.copy.duties

Text

checkout.copy.dutyTax

Text

checkout.copy.groupSummary

Text

checkout.copy.orderSummary

Text

checkout.copy.paymentCheckAgain

Text

checkout.copy.paymentConfirmed

Text

checkout.copy.paymentConfirmingBody

Text

checkout.copy.paymentConfirmingHeading

Text

checkout.copy.paymentFailedBody

Text

checkout.copy.paymentFailedHeading

Text

checkout.copy.paymentPaidBody

Text

checkout.copy.paymentStatusTitle

Text

checkout.copy.paymentVerifyingBody

Text

checkout.copy.paymentVerifyingHeading

Text

checkout.copy.paymentViewOrderStatus

Text

checkout.copy.secure

Text

checkout.copy.shippingTotal

Text

checkout.copy.subtotal

Text

checkout.copy.tax

Text

checkout.copy.taxIncluded

Text

checkout.copy.total

Text

checkout.copy.tryPaymentAgain

Text

checkout.dir

Text

ltr or rtl.

checkout.has_logo

Boolean

True when the store has a checkout logo.

checkout.icons

HTML

The inline SVG icon sprite; use an icon with <svg><use href="#co-i-NAME"></use></svg>. Required.

checkout.locale

Text

The shopper's language as a locale code.

checkout.logo_url

URL

The checkout logo.

checkout.payment_status

Object

The payment the shopper came back from. The status card that uses it is platform-owned.

checkout.payment_status.confirming

Boolean

True when checking takes longer than confirming_after seconds. The order is saved.

checkout.payment_status.confirming_after

Number

Seconds after which verifying becomes confirming (30).

checkout.payment_status.failed

Boolean

True when the payment didn't go through (failed, expired or cancelled).

checkout.payment_status.order_label

Text

The order number, worded. Empty before the order has a number.

checkout.payment_status.order_status_url

URL

The order status page, or the order in the customer's account.

checkout.payment_status.paid

Boolean

True when the payment is confirmed.

checkout.payment_status.poll_url

URL

Where the page runtime asks for the payment status.

checkout.payment_status.retry_url

URL

The payment step, to try again or choose another method.

checkout.payment_status.return_url

URL

The checkout return. The page runtime goes on through it once the payment is paid.

checkout.payment_status.state

Text

verifying, confirming, failed or paid.

checkout.payment_status.verifying

Boolean

True while the payment is being checked.

checkout.preview

Boolean

True in the editor preview.

checkout.styles

HTML

The page stylesheets and runtime script, and the checkout appearance. Required.

checkout.summary_rows

List

The order summary lines: an item, or a group of items sold together.

checkout.summary_rows[].group.image_url

URL

The group image.

checkout.summary_rows[].group.name

Text

The group name.

checkout.summary_rows[].group.total_str

Text

The group total, formatted.

checkout.summary_rows[].group.variant

Text

The group variant.

checkout.summary_rows[].is_group

Boolean

True for a group row.

checkout.summary_rows[].item.compare_str

Text

The price before a discount, to strike through.

checkout.summary_rows[].item.discount_str

Text

The line's discount, formatted.

checkout.summary_rows[].item.gift_card_recipient

Object

Who a Gift Card line is for; absent on every other line.

checkout.summary_rows[].item.gift_card_recipient.email

Text

The recipient's email, when given.

checkout.summary_rows[].item.gift_card_recipient.message

Text

The shopper's message to the recipient, when given.

checkout.summary_rows[].item.gift_card_recipient.name

Text

The recipient's name.

checkout.summary_rows[].item.gift_card_recipient.phone_display

Text

The recipient's phone in its country's international format, when given.

checkout.summary_rows[].item.gift_card_recipient.sends_at

Text

When the card is sent, in store time in the shopper's language; absent when it is sent once the order is paid.

checkout.summary_rows[].item.image_url

URL

The variant image.

checkout.summary_rows[].item.line_str

Text

The line total, formatted.

checkout.summary_rows[].item.name

Text

The product title.

checkout.summary_rows[].item.product_image_url

URL

The product's own image.

checkout.summary_rows[].item.proof_url

URL

The line's design proof, for a personalized product.

checkout.summary_rows[].item.properties

List

The line properties shoppers may see (the store's definitions make them shopper-readable or shopper-writable), in the definitions' order.

checkout.summary_rows[].item.properties[].Name

Text

The property's name, in the shopper's language when the merchant translated it.

checkout.summary_rows[].item.properties[].Value

Text

The value as the shopper reads it: a choice's label, Yes or No, a date in their language, or the text as written.

checkout.summary_rows[].item.qty

Number

The quantity.

checkout.summary_rows[].item.tax_str

Text

The line's tax, formatted.

checkout.summary_rows[].item.unit_str

Text

The price of one, formatted.

checkout.summary_rows[].item.variant

Text

The variant title.

checkout.totals

Object

The checkout totals, each formatted in the checkout currency.

checkout.totals.checkout_fee_total_str

Text

The checkout fees total.

checkout.totals.cod_fee_label

Text

The cash on delivery fee label.

checkout.totals.cod_fee_str

Text

The cash on delivery fee.

checkout.totals.discount_lines

List

The discounts one by one.

checkout.totals.discount_lines[].amount

Text

The amount.

checkout.totals.discount_lines[].name

Text

The discount name or code.

checkout.totals.discount_str

Text

The discount total.

checkout.totals.duties_str

Text

Import duties.

checkout.totals.duty_note

Text

Who pays import duties.

checkout.totals.duty_tax_str

Text

Import tax.

checkout.totals.fee_lines

List

The checkout fees one by one.

checkout.totals.fee_lines[].amount

Text

The amount.

checkout.totals.fee_lines[].calculation

Text

How the fee is worked out.

checkout.totals.fee_lines[].customer_text

Text

Text the shopper entered for the fee.

checkout.totals.fee_lines[].name

Text

The fee name.

checkout.totals.fee_lines[].taxes

Text

Tax included in the fee, worded.

checkout.totals.item_count

Number

The number of items.

checkout.totals.shipping_label

Text

The shipping row label.

checkout.totals.shipping_str

Text

The shipping total.

checkout.totals.shipping_taxes

Text

The tax included in shipping, worded.

checkout.totals.subtotal_str

Text

The subtotal.

checkout.totals.tax_included

Boolean

True when prices include tax.

checkout.totals.tax_lines

List

The taxes one by one.

checkout.totals.tax_lines[].amount

Text

The amount.

checkout.totals.tax_lines[].name

Text

The tax name.

checkout.totals.tax_str

Text

The tax total.

checkout.totals.total_str

Text

The total.