Kimberley-College / Prom

Website for Kimberley College Prom 2022
https://prom.kim
6 stars 0 forks source link

Google Pay #13

Open NicholasG04 opened 2 years ago

NicholasG04 commented 2 years ago

Add GPay support for the QR tickets

NicholasG04 commented 2 years ago

Google Pay objects hereto:

{ // EventTicketObject
  "ticketHolderName": string,
  "ticketNumber": string, // should we generate UUIDs rather than just numbers? Might be a better idea
  "id": string, // issuerID.identifier, we need to pick the identifier which can just be that UUID
  "classId": string, // issuerID.identifier
  "state": "ACTIVE",
  "barcode": {
    "type": "QR_CODE",
    "value": string, // JWT
    "alternateText": string // chuck the name - UUID there so we can check it in the db if barcode doesn't work
  }
}
{ // EventTicketClass
  "eventName": "Kimberley College Prom",
  "eventId": string, // just a UUID....?
  "logo": object (Image),
  "venue": object (EventVenue),
  "dateTime": object (EventDateTime),
  "finePrint": object (LocalizedString), // terms of sale?
  "id": string, // same UUID? one used in EventTicketObject
  "issuerName": "Kimberley College Prom 2022",
  "locations[]": object (LatLongPoint),
  "reviewStatus": "draft" || "underReview" || "approved", // underReview goes to approved automatically
  "heroImage": object (Image), // banner
}
NicholasG04 commented 2 years ago

Am now approved for Google Pay for Passes, so this can be completed. If anyone is interested in taking on this issue, let me know and I'll invite you to the Google Pay business.