시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
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';백엔드 요구 사항
백엔드 요구 사항스 트립 터미널은 안전한 백엔드 엔드 포인트가 연결 토큰을 생성하는 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 - 스티프 테미널.