{"id":42672506,"url":"https://github.com/passkit/passkit-golang-grpc-quickstart","last_synced_at":"2026-01-29T11:03:10.190Z","repository":{"id":39712877,"uuid":"210681394","full_name":"PassKit/passkit-golang-grpc-quickstart","owner":"PassKit","description":"Golang Quickstart to create, distribute, analyse and manage your Digital Coupons / Membership / Boarding Passes / Event Tickets for Apple Wallet and Google Pay","archived":false,"fork":false,"pushed_at":"2025-02-27T17:42:43.000Z","size":1327,"stargazers_count":9,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T01:10:43.601Z","etag":null,"topics":["apple-wallet","apple-wallet-support","coupons","event-tickets","flights","go","go-quickstart","golang","golang-quickstart","google-pay","google-wallet","grpc","loyalty","loyalty-program","loyalty-solution","quickstart"],"latest_commit_sha":null,"homepage":"https://passkit.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PassKit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-24T19:27:09.000Z","updated_at":"2025-02-27T17:42:46.000Z","dependencies_parsed_at":"2025-02-27T18:48:24.482Z","dependency_job_id":"c140875d-78c1-4842-a9d4-5341c1e09bb7","html_url":"https://github.com/PassKit/passkit-golang-grpc-quickstart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PassKit/passkit-golang-grpc-quickstart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassKit%2Fpasskit-golang-grpc-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassKit%2Fpasskit-golang-grpc-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassKit%2Fpasskit-golang-grpc-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassKit%2Fpasskit-golang-grpc-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PassKit","download_url":"https://codeload.github.com/PassKit/passkit-golang-grpc-quickstart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PassKit%2Fpasskit-golang-grpc-quickstart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28876674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-wallet","apple-wallet-support","coupons","event-tickets","flights","go","go-quickstart","golang","golang-quickstart","google-pay","google-wallet","grpc","loyalty","loyalty-program","loyalty-solution","quickstart"],"created_at":"2026-01-29T11:02:39.718Z","updated_at":"2026-01-29T11:03:10.172Z","avatar_url":"https://github.com/PassKit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"PassKit Golang Quickstart\n=======================\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Go Reference](https://pkg.go.dev/badge/github.com/PassKit/passkit-golang-grpc-sdk.svg)](https://pkg.go.dev/github.com/PassKit/passkit-golang-grpc-sdk)\n\n### Overview\n\nThis quickstart aims to help  get Golang developers up and running with the PassKit SDK as quickly as possible.\n\n### Prerequisites\n\nYou will need the following:\n- A PassKit account (signup for free at [PassKit](https://app.passkit.com))\n- Your PassKit SDK Credentials (available from the [Developer Tools Page](https://app.passkit.com/app/account/developer-tools))\n- Apple wallet certificate id (for flights only, available from the [certificate page](https://app.passkit.com/app/account/certificates))\n ![ScreenShot](images/certificate.png)\n- Recommended code editor [Golang](https://go.dev/dl/) (Guide to [installation](https://go.dev/doc/install))\n\n### Configuration\n\n1. Install PassKit Golang SDK in the terminal with `go install github.com/PassKit/passkit-golang-grpc-sdk` \nIt should output something similar to below:\n![ScreenShot](images/go-get-commands.png)\n\n2. In the certs folder of the repository add the following three PassKit credential files:\n    - certificate.pem\n    - ca-chain.pem\n    - key.pem\n    \n    You can disregard the key-java.pem credentials file as it is not compatible with Golang.\n\n3. Now we need to decrypt your `key.pem`. At your project root directory in the terminal, run `cd ./certs`  `openssl ec -in key.pem -out key.pem`. If you are in your root directory the terminal should show `PASSKIT-GOLANG-GRPC-QUICKSTART` to the left of the cursor and then after running the command `certs`, as shown below.\n![ScreenShot](images/decrypt-key.png)\nFor the password use the one-time password that you used for generating the SDK credentials.\n\nYour `key.pem` file should look like below.\n   ![ScreenShot](https://raw.githubusercontent.com/PassKit/passkit-golang-members-quickstart/master/images/decrypted_key_pem.png)\n   If you do not see `Proc-Type: 4,ENCEYPTED` on line 2, you have successfully decrypted `key.pem`.\n   \n4. Replace `YOUR_EMAIL_ADDRESS@EMAIL.COM` in `main.go` on line 29 with your email address in order to receive the welcome email with card url which your member will also receive.\n![ScreenShot](images/email.png)\n\n5. Check the API region of your account [here](https://app.passkit.com/app/account/developer-tools) and change it accordingly, for Europe/Pub1 use `gRPCHost = \"grpc.pub1.passkit.io\"` and for USA/Pub2 use `gRPCHost = \"grpc.pub2.passkit.io\"`.\n\n6. Go back to root directory with `cd ../`. Then run `go mod tidy` , then `go run main.go` to create a sample membership card, coupon card and boarding pass (with default templates \u0026 tiers/offers) and issue them. If you are in your root directory the terminal should show `PASSKIT-GOLANG-GRPC-QUICKSTART` to the left of the cursor.\n\n## Examples\n###  Membership Cards\n#### Issue A Membership Card.\nFollow the steps of the configuration to get the quickstart up and running.\nIn `IssueMembershipCard()` the methods there are:\n- CreateProgram() - takes a new program name and creates a new program\n- CreateTier() -  takes the programId of the program just created in the above program, creates a new template (based of default template), creates a tier, and links this tier to the program\n- EnrolMember() - takes programId and tierId created by the above methods, and memberDetails, creates a new member record, and sends a welcome email to deliver membership card url\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/issue-membership-card.png)\n\n#### Engage With Your Members\n`EngageWithMembers()` contains multiple methods you can use to engage with your members. They use the information from `IssueMembershipCard()` to run the methods unless information is manually entered.\n- GetSingleMember() - takes memberId and returns the record of that member\n- ListMembers() - takes search conditions as pagination object and returns list of member records which match with the conditions\n- CountMembers() - takes search conditions as pagination object and returns the number of members who match with the condition\n- SendWelcomeEmail() - takes memberId and sends a welcome email (contains membership card url) to the member\n- UpdateMember_EmailAddress() - takes memberId and memberDetails, and updates existing member record\n- AddPoints() - takes a programId of an existing program and memberId of existing member to add points to chosen member\n- UsePoints() - takes a programId of an existing program and memberId of existing member to use points from a chosen member\n- DeleteMembers() - takes programId, tierId, memberId and memberDetails, deletes an existing member record\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/engage-with-members.png)\n\n###  Coupons\n#### Issue A Coupon.\nFollow the steps of the configuration to get the quickstart up and running.\nIn `IssueCoupon()` the methods are:\n- CreateCampaign() - takes a new campaign name and creates a new campaign\n- CreateOffer() - takes a campaignId of the campaign you just created and creates a new template (based of default template), creates an offer, and links this offer to the campaign\n- CreateCoupon() - takes campaignId and offerId created by the above methods, and couponDetails, creates a new coupon record, and sends a welcome email to deliver coupon card url\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/issue-coupon.png)\n\n#### Engage With Coupons.\n`EngageWithCoupons()` contains multiple methods you can use to engage with coupons. They use the information from `IssueCoupon()` to run the methods unless informatin is manually entered.\n- GetSingleCoupon() - takes couponId and returns the record of that coupon\n- ListCoupons() - takes search conditions as pagination object and returns list of coupon records which match with the conditions\n- CountCoupons() - takes search conditions as pagination object and returns the number of coupons who match with the condition\n- UpdateCoupon() - takes a campaignId of an existing campaign and couponId of existing coupon to update that coupon\n- RedeemCoupon() - takes a campaignId of an existing campaign and couponId of existing coupon to redeem that coupon\n- VoidCoupon() - takes the couponId, offerId and campaignId to void an existing coupon\n- DeleteCouponOffer() - takes the offerId to delete an existing offer\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/engage-with-coupons.png)\n\n### Boarding Passes\n#### Issue A Boarding Pass.\nFollow the steps of the configuration to get the quickstart up and running.\nIn `IssueBoardingPass()` the methods are:\n- CreateTemplate() - creates the pass template for flights and boarding passes\n- CreateCarrier() - takes a new carrier code and creates a new carrier\n- CreateAirport() - takes a new airport code and creates a new airport.\n- CreateFlight() - takes templateId , from previous method, to use as base template and uses a carrier code, created from previous method, and creates a new flight\n- CreateFlightDesignator() - creates flight designator using flight code\n- CreateBoardingPass() - takes templateId, from previous method, and customer details creates a new boarding pass, and sends a welcome email to deliver boarding pass url\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/issue-boarding-pass.png)\n\n\n#### Engage With Boarding Passes.\n`EngageWithBoardingPass()` contains multiple methods you can use to engage with boarding passes. They use the information from `IssueBoardingPass()` to run the methods unless informatin is manually entered.\n- DeleteFlight() - takes an existing flight number as well as other details and deletes the flight associated with it\n- DeleteFlightDesignator() - takes an existing flight designation and deletes the flight designator associated with it\n- DeleteAirports() - takes an existing airport code and deletes the airport associated with it\n- DeleteCarrier() - takes an existing carrier code and deletes the carrier associated with it\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/engage-with-boarding-passes.png)\n\n### Event Tickets\n#### Issue An Event Ticket.\nFollow the steps of the configuration to get the quickstart up and running.\nIn `IssueEventTicket()` the methods are:\n- CreateTemplate() - creates the pass template for event tickets\n- CreateVenue() - creates a venue for the event \n- CreateProduction() - takes a new production name and creates a new production\n- CreateTicketType() - takes templateId , from previous method, to use as base template and the productionId, created from previous method, and creates a new ticketType \n- CreateEvent() - takes productionId and venueId ,from previous method, and creates a new Event\n- IssueEventTicket() - takes ticketTypeId and  eventId, from previous method, and customer details creates a event ticket, and sends a welcome email to deliver event ticket url\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/issue-event-ticket.png)\n\n#### Engage With Event Ticket.\n`EngageWithEventTicket()` contains multiple methods you can use to engage with event tickets. They use the information from `IssueEventTicket()` to run the methods unless informatin is manually entered.\n- ValidateTicket() - takes an existing ticket number as well as other details and validates it\n- RedeeemTicket() - takes an existing ticket number and redeems the event ticket associate with it\n\nAfter running `go run main.go` the terminal should show:\n![ScreenShot](images/engage-with-event-tickets.png)\n\n## GUI Tool\nGUI tool can be accessed from [your PassKit account](https://app.passkit.com/login).\n\n## Documentation\n* [PassKit Membership Official Documentation](https://docs.passkit.io/protocols/member)\n* [PassKit Coupons Official Documentation](https://docs.passkit.io/protocols/coupon)\n* [PassKit Boarding Passes Official Documentation](https://docs.passkit.io/protocols/boarding)\n* [PassKit Event Tickets Official Documentation](https://docs.passkit.io/protocols/event-tickets/)\n\n\n## Getting Help\n* [Online chat support](https://passkit.com/)\n\n## License\nDistributed under MIT License. Details available on [license file](#).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasskit%2Fpasskit-golang-grpc-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasskit%2Fpasskit-golang-grpc-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasskit%2Fpasskit-golang-grpc-quickstart/lists"}