Starts a payment for an item, such as a reservation or an invoice, and returns HTML for a pay button.What it creates. A payment transaction with status open. If an open transaction already exists for the same item and payment method, and it was started the same way (not from a payment request or a save-card flow), that transaction is updated with the new amount and returned instead of creating another one. When the account adds gateway fees to payments, the method's fee is added to amount.After the payment. The customer is sent to external_redirect with the query parameters transaction_token (the transaction uuid), item_type, item_id, status and message. Do not trust these parameters: read the transaction with "Get a payment transaction by UUID" to confirm its status. When the payment succeeds, HQ applies it to the item.item_id must be the ID of an existing item of item_type.
The button HTML and the transaction it pays. A successful body has no success field. HTTP 200 is also used for failures: such a body has success: false and is an ErrorUnauthorized (status_code 401 or 403).