{"id":20290640,"url":"https://github.com/gocardless/gocardless-pro-ios-sdk","last_synced_at":"2026-05-12T09:35:36.230Z","repository":{"id":222340430,"uuid":"756807432","full_name":"gocardless/gocardless-pro-ios-sdk","owner":"gocardless","description":"GoCardless Pro iOS SDK","archived":false,"fork":false,"pushed_at":"2025-05-08T09:56:21.000Z","size":239,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-11-11T15:02:59.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/gocardless.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":"2024-02-13T10:52:12.000Z","updated_at":"2025-05-29T12:45:12.000Z","dependencies_parsed_at":"2024-04-29T16:05:17.599Z","dependency_job_id":null,"html_url":"https://github.com/gocardless/gocardless-pro-ios-sdk","commit_stats":null,"previous_names":["gocardless/gocardless-pro-ios-sdk"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gocardless/gocardless-pro-ios-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fgocardless-pro-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fgocardless-pro-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fgocardless-pro-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fgocardless-pro-ios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocardless","download_url":"https://codeload.github.com/gocardless/gocardless-pro-ios-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fgocardless-pro-ios-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32932773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"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":[],"created_at":"2024-11-14T15:08:34.546Z","updated_at":"2026-05-12T09:35:36.201Z","avatar_url":"https://github.com/gocardless.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoCardless SDK\n\nThe GoCardless iOS SDK is a tool that enables developers to integrate GoCardless payments into their iOS applications. \nTo help developers get started, a sample app has been created that demonstrates how to use the SDK. \nThe app provides a clear and practical example of how to implement GoCardless payments within an iOS app.\n\n## Getting started\n\nGoCardlessSDK is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'GoCardlessSDK'\n```\n\n## Initializing the client\n\nThe client is initialised with an access token, and is configured to use GoCardless' live environment by default:\n\n```swift\nimport GoCardlessSDK\n\nGoCardlessSDK.initSDK(accessToken: \"YOUR_ACCESS_TOKEN\", environment: .live) {\n    print(\"GoCardless SDK is initialised\")\n}\n```\n\n## Supported Services\nCurrently we support the following services and their functions\n\n### Billing Request\n- `createBillingRequest`: Creates a Billing Request, enabling you to collect all types of GoCardless payments\n- `collectCustomerDetails`: If the billing request has a pending collect_customer_details action, this endpoint can be used to collect the details in order to complete it.\n- `collectBankAccount`: If the billing request has a pending collect_bank_account action, this endpoint can be used to collect the details in order to complete it.\n- `confirmPayerDetails`: This is needed when you have a mandate request. As a scheme compliance rule we are required to allow the payer to crosscheck the details entered by them and confirm it.\n- `fulfil`: If a billing request is ready to be fulfilled, call this endpoint to cause it to fulfil, executing the payment.\n- `cancel`: Immediately cancels a billing request, causing all billing request flows to expire.\n- `notify`: Notifies the customer linked to the billing request, asking them to authorise it.\n- `getBillingRequest`: Fetches a billing request\n- `listBillingRequests`: Returns a cursor-paginated list of your billing requests.\n\n### Billing Request Flow\n- `createBillingRequestFlow`: Creates a new billing request flow.\n\n### Payment\n- `createPaymentRequest`: Creates a new payment object.\n- ``\n\n## Examples\n\nNote: To be able to make any request, you must initialise the SDK.\n\n### Fetching List of Billing Requests\n\nEnsure that all requests are made within the correct `Scope` before launching.\n\n```swift\nGoCardlessSDK.shared.billingRequestService.listBillingRequests()\n    .receive(on: DispatchQueue.main)\n    .sink(receiveCompletion: { (completion) in\n        switch completion {\n        case let .failure(error):\n            print(\"API error: \\(error)\")\n            self.state = .error\n        case .finished: break\n        }\n    }) { billingRequestList in\n        self.state = .success(billingRequest: billingRequest)\n    }\n    .store(in: \u0026subscriptions)\n```\n\n### Handling Errors\n\nWhenever the API encounters an issue, it returns a `GoCardlessError` or its derivatives to provide more context about the error. Below are the types of errors you may encounter:\n\n- `AuthenticationError`: Indicates an issue with authentication.\n- `GoCardlessInternalError`: Denotes an internal error within the GoCardless system.\n- `InvalidApiUsageError`: Occurs when the API is used incorrectly.\n- `InvalidStateError`: Indicates an invalid state in the system.\n- `MalformedResponseError`: Denotes an issue with the response received from the API.\n- `PermissionError`: Occurs when the user does not have the necessary permissions.\n- `RateLimitError`: Indicates that the rate limit for API requests has been exceeded.\n- `ValidationFailedError`: Denotes a validation failure, usually with user input.\n\n\n## SDK Requirements\n\n### Language\n- **Swift**\n\n### Minimum Deployments\n- **iOS 13**\n\n### Dependencies\n- **No external libraries**\n\n### Threading\n- **Combine**\n\n### Repository\n- **[GitHub Repository](https://github.com/gocardless/gocardless-pro-ios-sdk)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fgocardless-pro-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocardless%2Fgocardless-pro-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fgocardless-pro-ios-sdk/lists"}