{"id":19276069,"url":"https://github.com/restoremonarchy/paymentgateway","last_synced_at":"2025-07-03T17:36:03.747Z","repository":{"id":98412571,"uuid":"427640868","full_name":"RestoreMonarchy/PaymentGateway","owner":"RestoreMonarchy","description":"Another custom payment gateway provider for Mock, PayPal \u0026 more","archived":false,"fork":false,"pushed_at":"2023-11-15T22:28:03.000Z","size":2002,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T23:36:04.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/RestoreMonarchy.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":"2021-11-13T11:02:40.000Z","updated_at":"2025-01-18T07:19:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d8d95e3-a01f-4cce-a204-f4282259d16c","html_url":"https://github.com/RestoreMonarchy/PaymentGateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RestoreMonarchy/PaymentGateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RestoreMonarchy%2FPaymentGateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RestoreMonarchy%2FPaymentGateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RestoreMonarchy%2FPaymentGateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RestoreMonarchy%2FPaymentGateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RestoreMonarchy","download_url":"https://codeload.github.com/RestoreMonarchy/PaymentGateway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RestoreMonarchy%2FPaymentGateway/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263370171,"owners_count":23456425,"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":[],"created_at":"2024-11-09T20:52:48.802Z","updated_at":"2025-07-03T17:36:03.719Z","avatar_url":"https://github.com/RestoreMonarchy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PaymentGateway\nThis is a custom payment gateway for my projects.  \nIt's still under development and I will first implement it for my [UnturnedStore](https://github.com/RestoreMonarchy/UnturnedStore) project.\n\n\u003e *This is my payment gateway. There are many like it, but this one is mine.*  \n\u003e *My payment gateway is my best friend. It is my life. I must master it as I must master my life.*  \n\u003e *My payment gateway, without me, is useless. Without my payment gateway, I am useless...*\n\n### Payment Gateway Client\n```cs\nPaymentGatewayClient client = new(new PaymentGatewayClientOptions()\n{\n    BaseAddress = \"https://localhost:7255\",\n    APIKey = \"be1ade6b-53ca-4d2c-8815-3127efbc4a8e\"\n});\n\nPayment payment = Payment.Create(PaymentProviders.Mock, \"YOUR_CUSTOM\", \"YOUR_RECEIVER\", \"USD\", 49); \n// In case of mock, receiver can be null\n\npayment.AddItem(\"Large Fries\", 5, 2);\npayment.AddItem(\"Cheeseburger\", 2, 2);\npayment.AddItem(\"Big Mac\", 10, 3.5m);\n\nGuid publicId = await client.CreatePaymentAsync(payment); // It sends a request to payment gateway web API \nstring payUrl = client.BuildPayUrl(publicId); // Simply formats url: {PaymentGateway_URL}/pay/{publicId}\n```\nNow you can redirect user to `payUrl`. If he completes the payment notifications are going to be sent, to notify URL of the store, until your web API returns status code 200 (OK).\n\n### Screenshots\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://i.imgur.com/FoxOdaD.png\" width=\"384\" height=\"216\" /\u003e\n  \u003cimg src=\"https://i.imgur.com/bCZCmRO.png\" width=\"384\" height=\"216\" /\u003e\n\u003c/p\u003e\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://i.imgur.com/2gF0yAR.png\" width=\"384\" height=\"216\" /\u003e\n  \u003cimg src=\"https://i.imgur.com/EGOCtkR.jpeg\" width=\"384\" height=\"216\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestoremonarchy%2Fpaymentgateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestoremonarchy%2Fpaymentgateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestoremonarchy%2Fpaymentgateway/lists"}