Skip to content

LLuMus/x-plugin-wallet-passes

Repository files navigation

x-plugin-wallet-passes

A PoC of a Plugin for ChatGPT to generate iOS Wallet Passes, this PoC is running in production at https://walletpasses.xyz/ and you can find it on the ChatGPT Plugin Store.

This code base offers:

  • A REST API to generate passes with an approved manifest for ChatGPT
  • OAuth2 flow with Google Auth for user authentication
  • Stripe integration for payments and acquisition of "tokens"
  • A Webhook to receive Stripe events and update the user's tokens
  • Generation of Apple Wallet Passes based on ChatGPT calls

Requirements

- OPENAI_PLUGIN_KEY=${OPENAI_PLUGIN_KEY}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- TEAM_IDENTIFIER=${TEAM_IDENTIFIER}
- AWS_BUCKET_NAME=${AWS_BUCKET_NAME}
- AWS_REGION=${AWS_REGION}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- WALLET_STRIPE_WEBHOOK_SECRET=${WALLET_STRIPE_WEBHOOK_SECRET}
- WALLET_STRIPE_SECRET=${WALLET_STRIPE_SECRET}
- WALLET_STRIPE_PRICE=${WALLET_STRIPE_PRICE}
- WALLET_STRIPE_TAX=${WALLET_STRIPE_TAX}

Considering the following environment variables that we have to configure first, you can already see the list of services that we will have to prepare first:

Run

$ docker-compose up

Test

$ go test ./...

No tests written yet 👹

Releases

No releases published

Packages

No packages published