Overview
The Terminal client provides methods for:- Creating and managing terminal checkouts for accepting payments
- Processing refunds through terminal devices
- Sending custom actions to terminal devices
- Managing terminal device states
Client Initialization
Methods
DismissTerminalAction
Dismisses a Terminal action request if the status and type of the request permits it.terminal.go:15882
Unique ID for the
TerminalAction associated with the action to be dismissed.The dismissed terminal action.
DismissTerminalCheckout
Dismisses a Terminal checkout request if the status and type of the request permits it.terminal.go:15943
Unique ID for the
TerminalCheckout associated with the checkout to be dismissed.The dismissed terminal checkout.
DismissTerminalRefund
Dismisses a Terminal refund request if the status and type of the request permits it.terminal.go:16003
Unique ID for the
TerminalRefund associated with the refund to be dismissed.The dismissed terminal refund.
Use Cases
Accept In-Person Payments
Use Terminal checkouts to process payments through Square Terminal devices:Process Refunds
Issue refunds directly through terminal devices:Best Practices
- Always use idempotency keys to prevent duplicate transactions
- Handle device unavailability gracefully with timeouts
- Implement proper error handling for network issues
- Use dismiss methods to cancel pending requests when needed
- Monitor terminal device status before initiating requests
Related Resources
- Devices API - Manage Square Terminal devices
- Payments API - Process payments
- Refunds API - Handle refunds
