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 |
|---|---|
|
Just back from paying; the page checks the payment every 2 seconds. |
|
Checking takes longer than 30 seconds. The order is saved and the shopper can leave. |
|
The payment didn't go through. The shopper can try again. |
|
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 |
|---|---|---|
|
Text |
The brand name from the checkout appearance, or the store name. |
|
Object |
Every word on the page, in the shopper's language. Each is a storefront message the merchant can change under Customize checkout text. |
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Boolean |
True when the store has a checkout logo. |
|
HTML |
The inline SVG icon sprite; use an icon with |
|
Text |
The shopper's language as a locale code. |
|
URL |
The checkout logo. |
|
Object |
The payment the shopper came back from. The status card that uses it is platform-owned. |
|
Boolean |
True when checking takes longer than |
|
Number |
Seconds after which |
|
Boolean |
True when the payment didn't go through (failed, expired or cancelled). |
|
Text |
The order number, worded. Empty before the order has a number. |
|
URL |
The order status page, or the order in the customer's account. |
|
Boolean |
True when the payment is confirmed. |
|
URL |
Where the page runtime asks for the payment status. |
|
URL |
The payment step, to try again or choose another method. |
|
URL |
The checkout return. The page runtime goes on through it once the payment is paid. |
|
Text |
|
|
Boolean |
True while the payment is being checked. |
|
Boolean |
True in the editor preview. |
|
HTML |
The page stylesheets and runtime script, and the checkout appearance. Required. |
|
List |
The order summary lines: an item, or a group of items sold together. |
|
URL |
The group image. |
|
Text |
The group name. |
|
Text |
The group total, formatted. |
|
Text |
The group variant. |
|
Boolean |
True for a group row. |
|
Text |
The price before a discount, to strike through. |
|
Text |
The line's discount, formatted. |
|
Object |
Who a Gift Card line is for; absent on every other line. |
|
Text |
The recipient's email, when given. |
|
Text |
The shopper's message to the recipient, when given. |
|
Text |
The recipient's name. |
|
Text |
The recipient's phone in its country's international format, when given. |
|
Text |
When the card is sent, in store time in the shopper's language; absent when it is sent once the order is paid. |
|
URL |
The variant image. |
|
Text |
The line total, formatted. |
|
Text |
The product title. |
|
URL |
The product's own image. |
|
URL |
The line's design proof, for a personalized product. |
|
List |
The line properties shoppers may see (the store's definitions make them shopper-readable or shopper-writable), in the definitions' order. |
|
Text |
The property's name, in the shopper's language when the merchant translated it. |
|
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. |
|
Number |
The quantity. |
|
Text |
The line's tax, formatted. |
|
Text |
The price of one, formatted. |
|
Text |
The variant title. |
|
Object |
The checkout totals, each formatted in the checkout currency. |
|
Text |
The checkout fees total. |
|
Text |
The cash on delivery fee label. |
|
Text |
The cash on delivery fee. |
|
List |
The discounts one by one. |
|
Text |
The amount. |
|
Text |
The discount name or code. |
|
Text |
The discount total. |
|
Text |
Import duties. |
|
Text |
Who pays import duties. |
|
Text |
Import tax. |
|
List |
The checkout fees one by one. |
|
Text |
The amount. |
|
Text |
How the fee is worked out. |
|
Text |
Text the shopper entered for the fee. |
|
Text |
The fee name. |
|
Text |
Tax included in the fee, worded. |
|
Number |
The number of items. |
|
Text |
The shipping row label. |
|
Text |
The shipping total. |
|
Text |
The tax included in shipping, worded. |
|
Text |
The subtotal. |
|
Boolean |
True when prices include tax. |
|
List |
The taxes one by one. |
|
Text |
The amount. |
|
Text |
The tax name. |
|
Text |
The tax total. |
|
Text |
The total. |