Installation
If you haven't already bought the Stripe Terminal extension, you can purchase it from the TastyIgniter Marketplace.
After purchasing the extension, add composer.tastyigniter.com as a repository in your composer.json file to allow Composer to find the package. This is done automatically when you install the extension via the TastyIgniter Admin.
"repositories": {
"tastyigniter": {
"type": "composer",
"url": "https://composer.tastyigniter.com"
}
},
Next, create a auth.json file under the same directory as your composer.json file to provide your TastyIgniter Marketplace credentials:
{
"http-basic": {
"composer.tastyigniter.com": {
"username": "your-tastyigniter-account-email-address",
"password": "your-tastyigniter-site-carte-key"
}
}
}
Install the extension via composer:
composer require igniterlabs/ti-ext-stripeterminal -W
Run the database migrations:
php artisan igniter:up
Getting started
Stripe Terminal uses credentials from the PayRegister Stripe extension and shares webhook handling and refunds. Make sure you have the PayRegister Stripe extension installed and configured before setting up Stripe Terminal.
Configuration
- Configure Stripe keys under Manage > Settings > Payment Gateways > Stripe.
- Enable Stripe Terminal under Manage > Settings > Payment Gateways.
- Select Integration Mode in Stripe Terminal settings:
- Server-driven for smart readers.
- JavaScript SDK if your POS and readers are on the same LAN.
- Register readers under Tools > Smart Readers and assign staff + location.
Kiosk checkout
Add the Kiosk Checkout component to your checkout page. This renders a customer dropdown for staff in kiosk or cashier mode.
- From _Design > Themes > pages > checkout/checkout, add the
Kiosk Checkoutcomponent. - Select a dummy customer for staff without the right permissions.
- Allow permission
IgniterLabs.StripeTerminal.ManageKioskunder Manage > Staff members > Roles.
Usage
At checkout, staff can select the customer (if using kiosk checkout) and click the Pay with Stripe Terminal button. The payment flow depends on the integration mode:
- Server-driven: The server creates a payment intent and returns a
payment_intent_client_secretto the frontend, which is used to process the payment on the reader. This is recommended for smart readers and allows payments without local network constraints. - JavaScript SDK: The frontend creates a payment intent and processes the payment on the reader. This requires the POS and reader to be on the same LAN and is recommended for simpler setups or non-smart readers.
Refunds
Refunds are handled using the PayRegister Stripe refund flow. Use the refund button on payment logs to issue full or partial refunds.
Tips
If your checkout includes a tip total (order total code tip), the tip amount is included in payment metadata and processed as part of the in-person payment.
Saved cards
Saved cards use the PayRegister Stripe payment profile model. This is optional for in-person payments and depends on the payment method returned by the reader.
Permissions
| Permission | Purpose |
|---|---|
IgniterLabs.StripeTerminal.Manage |
Register and manage Stripe readers |
IgniterLabs.StripeTerminal.ManageCashier |
Use cashier checkout |
IgniterLabs.StripeTerminal.ManageKiosk |
Use kiosk checkout and customer selector |
Assign these in Manage > Staff members > Roles.