Payment sessions
The customer's attempts to pay an order online, each a page at the payment provider of its way to pay for what was outstanding then, open until the order's payment_due_time. Read only: the customer opens them at the checkout or from their account.
List payment sessions
Lists the order's payment sessions — its customer's attempts to pay it online, the oldest first, closed ones too — all of them in one page by default: an order holds at most 20. Neither filters nor sorts.
path Parameters
website_idId of the parent website.
order_idId of the parent order.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: create_time desc. Sortable: none — this collection serves its documented order only.
filterAIP-160 subset (§8). Filterable: none. A field outside the list is INVALID_ARGUMENT.
List payment sessions › Responses
One page of payment_sessions.
This page of payment_sessions, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Get payment session
A payment session of an order: one attempt of its customer to pay it online, on the page of the payment provider of its way to pay, for what was outstanding then. The customer opens it at the checkout or from their account; a second attempt while one of the same amount is open goes back to that one. A session is never deleted: one closed says how. An order holds at most 20; listed the oldest first.
path Parameters
website_idId of the parent website.
order_idId of the parent order.
payment_session_idId of the parent payment_session.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get payment session › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
payment_methodThe order's online way to pay the session was opened for: its payment_method.
providerThe payment provider that brings the way to pay — the id of one of the website's payment_providers.
provider_refThe session's id at the provider: what its dashboard finds the attempt by. Absent for a session paid by a customer's saved way to pay that the provider refused before it made anything.
statusWhere the session is: OPEN — its page at the provider takes the payment; COMPLETED — the customer paid there; EXPIRED — it closed unpaid, by its time or by the platform; CANCELLED — the platform closed it unpaid; FAILED — the provider refused the payment for good. Only OPEN moves — and COMPLETED to FAILED once, when a payment the provider was still working on (a SALE PENDING) is refused after all.
amountWhat the session asks, a google.type.Money in the order's currency: its outstanding_total when the session was opened.
expire_timeWhen the session stops taking the payment: the order's payment_due_time, or the provider's own end of its page when that comes first — a new session is opened after.
complete_timeWhen the customer paid; absent before.
capture_modeHow the provider takes the money, as its setting was when the session was opened: AUTOMATIC — as the customer pays, a SALE of the order; MANUAL — it holds it, an AUTHORIZATION the shop captures (:capture_payment) or lets go of (:void_payment).