{"repo":"vapor-community/stripe-kit","free":true,"listed":false,"github":"https://github.com/vapor-community/stripe-kit","clone":"git clone https://github.com/vapor-community/stripe-kit.git","description":"A Swift on Server SDK for the Stripe API","language":"Swift","stars":149,"topics":["stripe","stripe-api","stripe-payments","swift","vapor"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"StripeKit StripeKit is a Swift package used to communicate with the Stripe API for Server Side Swift Apps. Version support Stripe API version 2022-11-15 - StripeKit: 22.0.0 Installation To start using StripeKit, in your Package.swift , add the following Using the API Initialize the StripeClient And now you have acess to the APIs via stripe . The APIs you have available correspond to what's implemented. For example to use the charges API, the stripeclient has a property to access that API via routes. Expandable objects StripeKit supports expandable objects via 3 property wrappers: @Expandable , @DynamicExpandable and @ExpandableCollection All API routes that can return expanded objects have an extra parameter expand: [String]? that allows specifying which objects to expand. Usage with @Expandable : 1. Expanding a single field. 2. Expanding multiple fields. 3. Expanding nested fields. 4. Usage with list all. Note: For list operations expanded fields must start with data Usage with @DynamicExpandable : Some objects in stripe can be expanded into different objects. For example: An ApplicationFee has an originatingTransaction property that can be expanded into either a charge or a transfer. When expanding it you can specify which object you expect by doing the following: Usage with @ExpandableCollection : 1. Expanding an array of id s Nuances with parameters and type safety Stripe has a habit of changing APIs and having dynamic parameters for a lot of their APIs. To accomadate for","default_branch":null,"files":null,"tree":[],"storefront":"/r/vapor-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vapor-community/stripe-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}