Zum Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-pay
Tutorial
via github.com/Cap-go

Pay

Zahlungen mit Apple Pay und Google Pay für einen reibungslosen Checkout-Erlebnis

Richtlinie

Tutorial zu Zahlung

Mit @capgo/capacitor-zahlung

Capacitor-Plugin zum Auslösen von nativen Zahlungen für iOS (Apple Pay) und Android (Google Pay).

Installieren

bun add @capgo/capacitor-pay
bunx cap sync

What This Plugin Exposes

  • isPayAvailable - Überprüft, ob native Pay auf der aktuellen Plattform verfügbar ist. Auf iOS wird Apple Pay und auf Android Google Pay bewertet.
  • requestPayment - Präsentiert das native Pay-Blatt für die aktuelle Plattform. Geben Sie die Apple Pay-Konfiguration auf iOS und die Google Pay-Konfiguration auf Android an.

Example Usage

isPayAvailable

- Überprüft, ob native Pay auf der aktuellen Plattform verfügbar ist. Auf iOS wird Apple Pay und auf Android Google Pay bewertet.

import { Pay } from '@capgo/capacitor-pay';

await Pay.isPayAvailable();

requestPayment

- Präsentiert das native Pay-Blatt für die aktuelle Plattform. Geben Sie die Apple Pay-Konfiguration auf iOS und die Google Pay-Konfiguration auf Android an.

import { Pay } from '@capgo/capacitor-pay';

await Pay.requestPayment({} as PayPaymentOptions);

Full Reference

Fortsetzen Sie mit Using @capgo/capacitor-pay

Wenn Sie Using verwenden Mit @capgo/capacitor-pay verwenden um Zahlungen und Käufe zu planen und zu verbinden @capgo/capacitor-pay for the implementation detail in @capgo/capacitor-pay, Anleitung zum Starten für die Implementierungsdetails in Anleitung zum Starten Capgo Preisliste für den Produktworkflow in Capgo Preisliste Zahlungssystem für die Implementierungsdetails in Zahlungssystem @capgo/native-purchases für die Implementierungsdetails in @capgo/native-purchases