はじめに
インストールとマークダウンガイドの全てを含むセットアップコマンドをコピーしてください。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-stripe-terminal`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/stripe-terminal/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションbun add @capgo/capacitor-stripe-terminalbunx cap syncインポート
「インポート」のセクションimport { StripeTerminal } from '@capgo/capacitor-stripe-terminal';バックエンドの要件
「バックエンドの要件」のセクションStripe Terminalには、接続トークンを作成するための安全なバックエンドエンドポイントが必要です。そのURLを initialize().
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://api.example.com/stripe/terminal/connection-token', isTest: true,});
await StripeTerminal.discoverReaders({ type: 'tap-to-pay' });サンプルアプリ
「サンプルアプリ」のセクションgit clone https://github.com/Cap-go/capacitor-stripe-terminal.gitcd capacitor-stripe-terminal/example-appbun installbun run start真実の源
「真実の源」と題されたセクションこのページでは、現在の公開バージョン API を文書化しています。 Cap-go/capacitor-stripe-ターミナル.