@capgo/capacitor-pay
Accept payments with Apple Pay and Google Pay for seamless checkout experience
Overview
Section titled “Overview”Accept payments with Apple Pay and Google Pay for seamless checkout experience
Start with isPayAvailable() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | Partial | See getting started |
Core Capabilities
Section titled “Core Capabilities”isPayAvailable- Checks whether native pay is available on the current platform. On iOS this evaluates Apple Pay, on Android it evaluates Google Pay.requestPayment- Presents the native pay sheet for the current platform. Provide the Apple Pay configuration on iOS and the Google Pay configuration on Android.
Public API
Section titled “Public API”| Method | Description |
|---|---|
isPayAvailable | Checks whether native pay is available on the current platform. On iOS this evaluates Apple Pay, on Android it evaluates Google Pay. |
requestPayment | Presents the native pay sheet for the current platform. Provide the Apple Pay configuration on iOS and the Google Pay configuration on Android. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-pay.
Keep going from @capgo/capacitor-pay
Section titled “Keep going from @capgo/capacitor-pay”If you are using @capgo/capacitor-pay to plan payments and purchases, connect it with Using @capgo/capacitor-pay for the native capability in Using @capgo/capacitor-pay, Capgo Pricing for the product workflow in Capgo Pricing, Payment system for the implementation detail in Payment system, @capgo/native-purchases for the implementation detail in @capgo/native-purchases, and Getting Started for the implementation detail in Getting Started.