# Terminal payments (https://guides.sterasmartone.com/payment/api/dev-guide/terminals)


stera smart one provides payment functionality for terminal payment devices.

With a terminal, you can accept in-person card payments such as credit and debit cards. Cards with an IC chip require PIN entry. Contactless (tap-to-pay) payments and e-money payments are also supported.

**warn**

Before using payment processing on terminal payment devices, you must open an account with Square and complete the configuration on the stera smart one side.

Overview of the process until payments can be accepted

![](https://guides.sterasmartone.com/docs/b4420688e524eb751324c498563c40a2b4cec63f0cfa75113de111ab66caba39-image.png)

Overview of the payment flow

![](https://guides.sterasmartone.com/docs/a7d367fddf38643802a381b88bcb7bb96634c3745faa118de09a8502f9a0a6ec-image.png)

# Payment processing [#payment-processing]

### 1. Payment request [#1-payment-request]

Your server-side processing calls the stera smart one Charge feature to request a payment.

**Key request parameters**

* **resource**: Set to `reader`. (Planned to change to `terminal` in the next version.)
* **paymentMethod**: Payment method
* **extra**: readerId is required.

### 2. Customer payment processing [#2-customer-payment-processing]

Process the payment by credit card, debit card, e-money, or another method.

### 3. Check the Charge object status and display the payment result [#3-check-the-charge-object-status-and-display-the-payment-result]

You can confirm the payment result in either of the following two ways.

**1. Receive a Webhook event**

When a payment succeeds, stera smart one sends a `charge.captured` event notification to the URL configured for the Webhook. When a payment fails, stera smart one sends a `charge.revoked` event notification to the URL configured for the Webhook.

**2. Retrieve the payment status**

You can check the status with the API for retrieving a Charge object. Call it repeatedly until the payment succeeds or times out (recommended timeout: 60 seconds; call frequency: once every 10 seconds).

# Check in the dashboard [#check-in-the-dashboard]

You can view payment records under "支払い管理 / 支払い一覧" (Payment management / Payment list) in the dashboard. For refunds, see *[Refund processing](https://guides.sterasmartone.com/payment/api/dev-guide/refunds)*.
