wallet

Version, currently master branch1 version
  • master branchlatestNov 2, 2022

github.com/place-technology/wallet

A service which generates Apple Wallet and Google Pay pass cards

6 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  wallet:
    github: place-technology/wallet
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
Giorgi Kavrelishvili
Target
  • wallet from src/application.cr

Dependencies

Runtime Dependencies

  • grip*github: grip-framework/grip
  • google*github: PlaceOS/google
  • piranha*github: grkek/piranha, branch: master
  • awscr-s3*github: taylorfinnell/awscr-s3

Development Dependencies

  • ameba*github: crystal-ameba/amebadev

README

Wallet API

A service which generates Apple Wallet and Google Pay pass cards.

Installation

You need to export several environment variables which are required for the service to function, the environment variables are present in the .envrc.example file.

Usage

Start the application and request with a client on the route /api/passbook using the POST method, in the data field use this:

{
    "name": "An Event",
    "image": {
        "icon": "----PNG BASE64----",
        "logo": "----PNG BASE64----"
    },
    "ticketHolder": {
        "firstName": "John",
        "lastName": "Doe"
    },
    "location": {
        "latitude": 0.0,
        "longitude": 0.0,
        "name": "Local",
        "address": "Global"
    },
    "dateTime": {
        "start": "2022-05-04T06:28:56.054Z",
        "end": "2022-05-04T06:50:56.054Z"
    },
    "quickResponseCode": {
        "value": "Interesting day we are having, right?",
        "altText": "SCAN TO VERIFY"
    }
}