Skip to content

SImple implementation of Native Payment - Capacitor Google/Apple Pay

Notifications You must be signed in to change notification settings

tednaaa/native-payment

Repository files navigation

Project Initialization

Create .env.local from the example

cp .env.example .env.local
Name Description
NEXT_PUBLIC_GOOGLE_PAY_ENVIRONMENT "TEST" or "PRODUCTION"

Install locked dependencies

npm ci

Init android/ios platforms

npx cap add android
npx cap add ios

After some changes build and sync code for both android/ios platforms to check functionality

npm run build:sync

Open Xcode and Android Studio then click run button

npx cap open android
npx cap open ios