stripe_native 패키지는 Flutter 애플리케이션에서 Apple Pay와 Google Pay를 사용하여 청구 가능한 Stripe 토큰을 생성할 수 있도록 합니다. 네이티브 결제 시트 통합을 제공하여 사용자가 장치 내장 결제 시스템을 통해 안전하게 결제를 승인할 수 있게 해줍니다. 사용자 승인 후, 이 패키지는 Stripe 거래에 사용할 수 있는 일회용 소스 토큰을 수집합니다. 커스텀 UI 구현 없이 플랫폼별 API를 활용하여 원활한 결제 경험을 제공합니다. 최소한의 설정으로 안전하고 네이티브 결제 흐름이 필요한 앱에 적합합니다.
사용 사례
Apple Pay를 통한 일회성 결제
Google Pay를 통한 일회성 결제
Stripe용 보안 토큰 생성
네이티브 결제 통합
모바일 전자상거래 앱
앱 내 구매
주요 기능
네이티브 애플 페이 통합
네이티브 구글페이 통합
일회성 소스 토큰 수집
최소한의 UI 사용자 정의
플랫폼별 결제 시트
안전한 결제 처리
적합한 대상
전자상거래 모바일 앱
구독 기반 서비스
안전한 결제가 필요한 앱
Stripe를 사용하는 개발자
Apple/Google Pay 지원 프로젝트
고려 사항
Stripe 계정 설정이 필요합니다
iOS 및 Android에 한정
적절한 마이너 설정이 필요합니다
기기 결제 사용 가능 여부에 따라 달라짐
반복 결제에 적합하지 않습니다
웹 플랫폼 지원 없음
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Stripe Native
Create chargeable stripe tokens using Apple and Google Pay.
This plugin will give you easy access to the Apple and Google Pay payment sheets. And provide one-time source tokens that are used to create a Stripe Charge.
Setup
Both (Required)
To begin one will need a Stripe project, from there collect a publishable key.
iOS (Required)
On the Apple Developer portal, one will need to create a merchant identifier. Then connect that identifier to the Stripe project.
From the Stripe dashboard, create a signing certificate to share with Apple, then upload the signed certificate to Stripe.
Lastly, open the apps' iOS module. Add the newly created identifier to the project's signing capabilities.
Android (Optional)
On the Google Play console, add the merchant identifier to the app capabilites. This makes the merchant known to Google Pay. With it, users will not see a warning saying this app is an unidentified merchant.
Functions
Set Publishable Key
Prior to calling native pay, set the publishable key.
On iOS the payment sheet spins and ends with a check or X depending on the result passed in. During the spinning, query an endpoint for a charge using the token. This function does not affect Android.
// call charge endpoint w/ tokenconst wasCharged = awaitAppAPI.charge(token, amount);
// then show success or failureStripeNative.confirmPayment(wasCharged);