Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tednaaa/native-payment

SImple implementation of Native Payment - Capacitor Google/Apple Pay
https://github.com/tednaaa/native-payment

apple-pay capacitor capacitor-plugin google-pay native native-pay nextjs

Last synced: 26 days ago
JSON representation

SImple implementation of Native Payment - Capacitor Google/Apple Pay

Awesome Lists containing this project

README

        

## Project Initialization

> Create .env.local from the example

```bash
cp .env.example .env.local
```

| Name | Description |
| :--------------------------------- | :--------------------: |
| NEXT_PUBLIC_GOOGLE_PAY_ENVIRONMENT | "TEST" or "PRODUCTION" |

> Install locked dependencies

```bash
npm ci
```

> Init android/ios platforms

```bash
npx cap add android
npx cap add ios
```

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

```bash
npm run build:sync
```

> Open Xcode and Android Studio then click run button

```bash
npx cap open android
npx cap open ios
```