{"id":16862837,"url":"https://github.com/ammario/paypal-ipn","last_synced_at":"2025-04-11T08:57:59.550Z","repository":{"id":57491996,"uuid":"90936951","full_name":"ammario/paypal-ipn","owner":"ammario","description":"Golang PayPal IPN listener","archived":false,"fork":false,"pushed_at":"2018-10-17T09:37:36.000Z","size":8,"stargazers_count":13,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T06:24:05.464Z","etag":null,"topics":["payment-processing","paypal"],"latest_commit_sha":null,"homepage":null,"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/ammario.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}},"created_at":"2017-05-11T04:22:33.000Z","updated_at":"2022-11-13T21:51:14.000Z","dependencies_parsed_at":"2022-08-28T11:50:15.383Z","dependency_job_id":null,"html_url":"https://github.com/ammario/paypal-ipn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammario%2Fpaypal-ipn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammario%2Fpaypal-ipn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammario%2Fpaypal-ipn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammario%2Fpaypal-ipn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammario","download_url":"https://codeload.github.com/ammario/paypal-ipn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363571,"owners_count":21091387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["payment-processing","paypal"],"created_at":"2024-10-13T14:36:56.108Z","updated_at":"2025-04-11T08:57:59.518Z","avatar_url":"https://github.com/ammario.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PayPal-IPN\n\nA Paypal IPN listener for Go.\n\n[![GoDoc](https://godoc.org/github.com/leebenson/paypal?status.svg)](https://godoc.org/github.com/ammario/paypal-ipn)\n\n## Basic Usage\n\n```go\nmux := http.NewServeMux()\nmux.Handle(\"/paypal-ipn\", ipn.Listener(func(err error, n *ipn.Notification) {\n    if err != nil {\n        log.Printf(\"IPN error: %v\", err)\n        return\n    }\n\n    //It's critical you verify the payment was sent to the correct business in the correct currency\n    const (\n        BusinessEmail = \"ammar@ammar.io\"\n        Currency      = \"USD\"\n    )\n    if n.Business != BusinessEmail {\n        log.Printf(\"Payment sent to wrong business: %v\", err)\n        return\n    }\n    if n.Currency != Currency {\n        log.Printf(\"Payment in wrong currency: %v\", n.Currency)\n        return\n    }\n\n    log.Printf(\"%v sent me %v!\", n.PayerEmail, n.Gross)\n}))\nlog.Fatalf(\"failed to run http server: %v\", http.ListenAndServe(\":80\", mux))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammario%2Fpaypal-ipn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammario%2Fpaypal-ipn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammario%2Fpaypal-ipn/lists"}