{"id":32317903,"url":"https://github.com/paytrail/paytrail-ios-sdk","last_synced_at":"2026-02-21T16:37:50.496Z","repository":{"id":199486703,"uuid":"645178620","full_name":"paytrail/paytrail-ios-sdk","owner":"paytrail","description":"Paytrail iOS SDK","archived":false,"fork":false,"pushed_at":"2025-02-18T13:19:41.000Z","size":1726,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-05T08:56:34.021Z","etag":null,"topics":["cocoapods","ios","sdk","sdk-ios","swift"],"latest_commit_sha":null,"homepage":"https://www.paytrail.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paytrail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-25T05:09:18.000Z","updated_at":"2025-02-18T13:17:51.000Z","dependencies_parsed_at":"2023-10-17T00:00:58.855Z","dependency_job_id":"b272530a-a448-421f-a703-b6ebfd83e4a9","html_url":"https://github.com/paytrail/paytrail-ios-sdk","commit_stats":null,"previous_names":["paytrail/paytrail-ios-sdk"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/paytrail/paytrail-ios-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-ios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paytrail","download_url":"https://codeload.github.com/paytrail/paytrail-ios-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-ios-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cocoapods","ios","sdk","sdk-ios","swift"],"created_at":"2025-10-23T11:21:18.328Z","updated_at":"2026-02-21T16:37:50.489Z","avatar_url":"https://github.com/paytrail.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paytrail iOS SDK\n\n## Introduction\n\nThe Paytrail iOS SDK is designed to streamline the integration of Paytrail payment service [Web APIs](https://docs.paytrail.com/#/?id=paytrail-payment-api) for developers working on native iOS projects. The SDK encapsulates the major features of **create a normal payment**, **save a payment card token**, and **pay \u0026 add card**.\n\nFor the SDK's APIs guide, please check out [Paytrail iOS SDK Guide](paytrail-ios-sdk/paytrail_ios_sdk_guide.docc/paytrail_ios_sdk_guide.md).\n\n## Requirements\n\n| Requirement | Minimal version |\n| ------ | ------ |\n| iOS | 15 |\n| Swift | 5 |\n| CocoaPods | 1.11.3 |\n\n## Installation\n\n### CocoaPods\n\nAdd the line below in your project's ``Podfile``\n\n```\npod 'paytrail-ios-sdk', '~\u003e1.0.0-beta1'\n```\n\nYou can also *specify the branch* to install from\n\n```\npod 'paytrail-ios-sdk', :git =\u003e 'https://github.com/paytrail/paytrail-ios-sdk.git', :branch =\u003e 'fixes/beta1'\n```\n\n### Swift Package Manager\n\nTo add a Swift package dependency to your project, follow the [guide here](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).\n\n**Package Lcation:**\n\n```\nhttps://github.com/paytrail/paytrail-ios-sdk.git\n```\n**Version Rules:**\n\n```\nminimumVersion = \"1.0.0-beta1\"\n```\n\n## Get Started\n\nBefore getting started with the SDK's APIs, a shared ``PaytrailMerchant`` should be created in the beginning when app launches in the, for example, ``AppDelegate``:\n\n```\nclass AppDelegate: NSObject, UIApplicationDelegate {\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -\u003e Bool {\n        ...\n        PaytrailMerchant.create(merchantId: \"YOUR_MERCHANT_ID\", secret: \"YOUR_MERCHANT_SECRET\")\n        PTLogger.globalLevel = .debug // Enable SDK debug logging\n        return true\n    }\n}\n```\n\nOr in the *main app* in a SwiftUI app before any API is called:\n```\n@main\nstruct PaytrailSdkExamplesApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ShoppingCartView()\n                .preferredColorScheme(.light)\n                .onAppear {\n                    PaytrailMerchant.create(merchantId: \"YOUR_MERCHANT_ID\", secret: \"YOUR_MERCHANT_SECRET\")\n                    PTLogger.globalLevel = .debug // Enable SDK debug logging\n                }\n        }\n    }\n}\n```\n\n## Examples\n\n[Paytrail SDK Examples](https://github.com/paytrail/paytrail-ios-sdk/tree/main/PaytrailSdkExamples) app provides the detailed examples for the usages of the SDK's APIs.\n\n## License\n\nPayrail iOS SDK is released under [MIT License](https://github.com/paytrail/paytrail-ios-sdk/blob/main/LICENSE)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytrail%2Fpaytrail-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaytrail%2Fpaytrail-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytrail%2Fpaytrail-ios-sdk/lists"}