ucp_checkout_complete
Submit payment to complete a checkout session and finalize a purchase at a UCP-enabled merchant.
Instructions
Complete a checkout session by submitting payment. This finalizes the purchase.
Args: merchant_url: The base URL of the UCP-enabled merchant checkout_id: The ID of the checkout session to complete payment_handler_id: The ID of the payment handler to use (from ucp_discover) card_token: Payment token from the payment provider card_brand: Card brand (e.g., Visa, Mastercard) card_last_digits: Last 4 digits of the card
Returns: Dictionary containing: - checkout_id: The checkout session ID - status: Final status (should be 'complete') - total: Final total charged - order_id: The order ID for tracking - order_url: Permalink to the order
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_url | Yes | ||
| checkout_id | Yes | ||
| payment_handler_id | No | mock_payment_handler | |
| card_token | No | success_token | |
| card_brand | No | Visa | |
| card_last_digits | No | 4242 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||