Skip to content

@capgo/capacitor-pay

Capacitor plugin to trigger native payment for iOS(Apple pay) and Android(Google Pay).

Capacitor plugin to trigger native payment for iOS(Apple pay) and Android(Google Pay).

  • 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.
MethodDescription
isPayAvailableChecks whether native pay is available on the current platform. On iOS this evaluates Apple Pay, on Android it evaluates Google Pay.
requestPaymentPresents the native pay sheet for the current platform. Provide the Apple Pay configuration on iOS and the Google Pay configuration on Android.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in 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.