{"id":17441465,"url":"https://github.com/simontreanor/funstripelite","last_synced_at":"2025-03-01T17:31:09.949Z","repository":{"id":139755464,"uuid":"484426676","full_name":"simontreanor/FunStripeLite","owner":"simontreanor","description":"A lightweight F# library to connect to the Stripe API","archived":false,"fork":false,"pushed_at":"2025-01-21T14:15:35.000Z","size":17348,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T22:02:17.120Z","etag":null,"topics":["api","automation","banking","fsharp","payment-integration","payment-provider","payments","stripe","stripe-api"],"latest_commit_sha":null,"homepage":"","language":"F#","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/simontreanor.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":"2022-04-22T12:32:27.000Z","updated_at":"2025-01-21T14:15:38.000Z","dependencies_parsed_at":"2023-11-13T12:27:35.835Z","dependency_job_id":"5155cbe6-8f5e-4819-be5f-350945aa7a8c","html_url":"https://github.com/simontreanor/FunStripeLite","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simontreanor%2FFunStripeLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simontreanor%2FFunStripeLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simontreanor%2FFunStripeLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simontreanor%2FFunStripeLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simontreanor","download_url":"https://codeload.github.com/simontreanor/FunStripeLite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241399895,"owners_count":19956981,"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":["api","automation","banking","fsharp","payment-integration","payment-provider","payments","stripe","stripe-api"],"created_at":"2024-10-17T15:23:55.201Z","updated_at":"2025-03-01T17:31:09.937Z","avatar_url":"https://github.com/simontreanor.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FunStripeLite\n\nA lightweight F# library to connect to the Stripe API. Targets .NET Standard 2.0 and .NET Standard 2.1.\n\n## Latest updates\n\n2025-02-24: FunStripeLite will be maintained as a subproject of [FunStripe](https://github.com/simontreanor/FunStripe) from now on.\n\n2025-01-21: version 1.4.1 updates FSharp.Core to version 9.0.101 and FSharp.Data to 6.4.1.\n\n2023-12-06: version 1.4.0 changes the target frameworks to .NET Standard 2.0 and .NET Standard 2.1 and updates FSharp.Core to version 8.0.100.\n\n2023-11-13: version 1.3.3 makes some minor performance enhancements.\n\n2023-10-13: version 1.3.2 provides a corrected serialise utility function.\n\n2023-10-13: version 1.3.1 restores a small number of utility functions that are not required by the library but are very useful for serialising Stripe objects.\n\n2023-10-13: version 1.3.0 fixes an issue with form serialisation that meant that JsonField names were only applied to the top level elements. It also tidies the code up a little.\n\n2023-08-29: version 1.2.3 updates the Stripe API from version 2022-11-15 to 2023-08-16, which contains some breaking changes. See the [Stripe API changelog](https://stripe.com/docs/upgrades#api-changelog) for details.\n\n2023-06-29: version 1.2.2 updates the package dependencies for FSharp.Core and FSharp.Data to 6.0.7 and 6.2.0 respectively.\n\n2022-11-22: version 1.2.0 updates the Stripe API from version 2022-08-01 to 2022-11-15, which contains some breaking changes. See the [Stripe API changelog](https://stripe.com/docs/upgrades#api-changelog) for details. As .NET 5 is out-of-support, this has been removed from the target frameworks.\n\n2022-10-05: version 1.1.0 updates the Stripe API from version 2020-08-27 to 2022-08-01, which contains some breaking changes. See the [Stripe API changelog](https://stripe.com/docs/upgrades#api-changelog) for details.\n\n2022-04-22: FunStripeLite version 1.0.0 forked from FunStripe and stripped down\n\n## Installation\n\nGet the latest version from [Nuget](https://www.nuget.org/packages/FunStripeLite/)\n\n## Usage\n\nOpen the StripeModel and StripeRequest modules.\n\nHere's an example of how to create a new payment method:\n\n```F#\nlet settings = RestApi.StripeApiSettings.New(apiKey = \"\u003cyour Stripe API key\u003e\")\n\nlet getNewPaymentMethod () =\n    asyncResult {\n        return! \n            PaymentMethods.CreateOptions.New(\n                card = Choice2Of2 (PaymentMethods.Create'CardTokenParams.New(\"tok_visa\")),\n                type' = PaymentMethods.Create'Type.Card\n            )\n            |\u003e PaymentMethods.Create settings\n    }\n```\n\nThe result value is an `AsyncResult\u003cPaymentMethod,ErrorResponse\u003e`, giving you the requested object in case of success or a detailed error response if not.\n\nThe general format of API requests is `\u003cmodule\u003e`.`\u003cmethod\u003e` `settings` `options`.\n\nTo instantiate the `settings` you need to pass in your Stripe API key. Having local rather than global settings allows you to use different keys for different Stripe accounts if you need to.\n\nThe `options` can be provided using record notation or if there are many uninitialised properties you can use the static `New` method to instantiate the record more effiently.\n\n## References\n\n[Stripe Documentation](https://stripe.com/docs)\n\n[Developer Tools](https://stripe.com/docs/development)\n\n[API Reference](https://stripe.com/docs/api)\n\n[Official Stripe .NET Library](https://github.com/stripe/stripe-dotnet)\n\n[Stripe OpenAPI Specification](https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.sdk.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimontreanor%2Ffunstripelite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimontreanor%2Ffunstripelite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimontreanor%2Ffunstripelite/lists"}