You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 888e8a2
Browse filesBrowse the repository at this point in the historyBrowse files
Authorize a Link, Kernel or Shop Pay card using its existing purchase specification. Use only after explicit user approval and when the item advertises authorize; follow the advertised operation's description. For a Link card, pass browser_id and page_url together while the browser is on the final checkout page: Kernel inspects that checkout, chooses how the credential is delivered, and limits fill to that checkout's origin in any browser with this vault attached. Omitting both issues a virtual card that fills any page on the merchant origin. Once approval has been requested, browser_id and page_url are ignored and authorize only re-checks the request. Browser and checkout inspection errors occur before any provider request and can be retried once the browser is on the checkout page. Kernel and Shop Pay cards do not accept browser_id or page_url.
12
+
Authorize a Link, Kernel or Shop Pay card using its existing purchase specification. Use only after explicit user approval and when the item advertises authorize; follow the advertised operation's description. For a Link or Shop Pay card, pass browser_id and page_url together while the browser is on the final checkout page: Kernel confirms that checkout is open, sends it to the provider as the merchant, and limits fill to that checkout's origin in any browser with this vault attached. For Link it also chooses how the credential is delivered. Omitting both issues a virtual card that fills any page on the merchant origin. Once approval has been requested, browser_id and page_url are ignored and authorize only re-checks the request. Browser and checkout inspection errors occur before any provider request and can be retried once the browser is on the checkout page. Kernel cards do not accept browser_id or page_url.
Copy file name to clipboardExpand all lines: src/kernel/types/vaults/shop_pay_card_vault_item_spec.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,16 +28,17 @@ class LineItem(BaseModel):
28
28
classShopPayCardVaultItemSpec(BaseModel):
29
29
"""Shop Pay purchase.
30
30
31
-
amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize without checkout context: authorize returns an approval action for the shopper, who approves the purchase in Shop. Share its URL unchanged when present. Once approved, the card becomes ready and fills checkouts on the merchant_url origin. Report the merchant outcome with confirm_transaction.
31
+
amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize it with the browser at final checkout: Kernel sends that page to Shop as the merchant and the card fills only on its origin. Without browser_id and page_url it authorizes for merchant_url. authorize returns an approval action for the shopper, who approves the purchase in Shop; share its URL unchanged when present. Report the merchant outcome with confirm_transaction, which ends the card.
32
32
"""
33
33
34
34
amount: int
35
-
"""Approval limit in minor currency units."""
35
+
"""Approval limit in minor currency units, at most 1000000."""
36
36
37
37
context: str
38
38
"""What is being bought and why, written for the shopper."""
amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize without checkout context: authorize returns an approval action for the shopper, who approves the purchase in Shop. Share its URL unchanged when present. Once approved, the card becomes ready and fills checkouts on the merchant_url origin. Report the merchant outcome with confirm_transaction.
31
+
amount is the limit the shopper approves; totals must include exactly one positive total no higher than it. context is shown to the shopper when they approve. Authorize it with the browser at final checkout: Kernel sends that page to Shop as the merchant and the card fills only on its origin. Without browser_id and page_url it authorizes for merchant_url. authorize returns an approval action for the shopper, who approves the purchase in Shop; share its URL unchanged when present. Report the merchant outcome with confirm_transaction, which ends the card.
32
32
"""
33
33
34
34
amount: Required[int]
35
-
"""Approval limit in minor currency units."""
35
+
"""Approval limit in minor currency units, at most 1000000."""
36
36
37
37
context: Required[str]
38
38
"""What is being bought and why, written for the shopper."""
0 commit comments