Pay and send to print
hip_complete_paymentStep 2 of paying on your own: call it right after hip_prepare_payment. Pay for the job with a delegated payment authorization, with no browser and no human step. payment_authorization must be a Stripe shared payment token (spt_...) granted to Have It Printed whose maximum is at least the total from hip_prepare_payment; HIP charges exactly that total and never more. NEVER send a card number, expiry, CVV or any reusable credential to this tool. If the cardholder's bank requires authentication, this returns payment_status=requires_user_action rather than bypassing it. Then use hip_get_order for printing, shipping and tracking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_handle": "<job_handle>",
"payment_authorization": "<payment_authorization>"
},
"name": "hip_complete_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_handle | Yes | the job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it. | |
| tos_accepted | No | true only when the person paying has agreed to the Terms of Service (https://haveitprinted.com/terms.html) and content policy (https://haveitprinted.com/content-policy.html). Recorded on the order. | |
| payment_authorization | Yes | opaque delegated payment token (spt_...) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||