{"id":15862691,"url":"https://github.com/wcoder/trustly-payments-xamarin","last_synced_at":"2025-06-11T12:07:54.404Z","repository":{"id":146503086,"uuid":"242841171","full_name":"wcoder/trustly-payments-xamarin","owner":"wcoder","description":"An unofficial port of Trustly to Xamarin.Android and Xamarin.iOS","archived":false,"fork":false,"pushed_at":"2020-02-25T07:43:09.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T09:56:45.024Z","etag":null,"topics":["android","ios","payment-integration","trustly","xamarin","xamarin-android","xamarin-ios"],"latest_commit_sha":null,"homepage":"https://trustly.com/en/developer/api/#/iosandroid","language":"C#","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/wcoder.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-24T20:53:54.000Z","updated_at":"2020-02-26T15:12:50.000Z","dependencies_parsed_at":"2023-07-14T05:45:45.186Z","dependency_job_id":null,"html_url":"https://github.com/wcoder/trustly-payments-xamarin","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"cf52f885a65731b86cca612ddd42895210566dcd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Ftrustly-payments-xamarin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Ftrustly-payments-xamarin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Ftrustly-payments-xamarin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Ftrustly-payments-xamarin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wcoder","download_url":"https://codeload.github.com/wcoder/trustly-payments-xamarin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Ftrustly-payments-xamarin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259262610,"owners_count":22830560,"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":["android","ios","payment-integration","trustly","xamarin","xamarin-android","xamarin-ios"],"created_at":"2024-10-05T22:41:52.093Z","updated_at":"2025-06-11T12:07:54.372Z","avatar_url":"https://github.com/wcoder.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trustly for Xamarin\n\nTrustly payments for Xamarin.Android and Xamarin.iOS\n\n[Full documentation](https://trustly.com/en/developer/api/#/iosandroid)\n\n## iOS\n\nSetup WKWebView:\n\n```cs\npublic override void ViewDidLoad()\n{\n    base.ViewDidLoad();\n    \n    var userContentController = new WKUserContentController();\n    var configuration = new WKWebViewConfiguration();\n\n    configuration.UserContentController = userContentController;\n\n    // Use configuration when creating WKWebView and attach it to your view\n    _webView = new WKWebView(webViewContainer.Bounds, configuration);\n    webViewContainer.AddSubview(_webView);\n\n    // Add TrustlyWKScriptMessageHandler\n    userContentController.AddScriptMessageHandler(\n        new TrustlyWKScriptOpenURLScheme(_webView),\n        TrustlyWKScriptOpenURLScheme.NAME);\n}\n```\n\nAlso you can see [native README](native/trustly-framework-ios)\n\n## Android\n\n### Step 1\n\nSetup WebView:\n\n```cs\nprotected override void OnCreate(Bundle savedInstanceState)\n{\n    base.OnCreate(savedInstanceState);\n    SetContentView(Resource.Layout.activity_main);\n\n    // Get WebView \u0026 WebSettings\n    var myWebView = FindViewById\u003cWebView\u003e(Resource.Id.webview);\n    myWebView.SetWebViewClient(new WebViewClient());\n    var webSettings = myWebView.Settings;\n\n    // Enable javascript and DOM Storage\n    webSettings.JavaScriptEnabled = true;\n    webSettings.DomStorageEnabled = true;\n\n    // Add TrustlyJavascriptInterface\n    myWebView.AddJavascriptInterface(\n        new TrustlyJavascriptInterface(this),\n        TrustlyJavascriptInterface.NAME);\n}\n```\n\n### Step 2\n\nAdd to the Android project reference to the `Mono.Android.Export.dll` (**Android Project \u003e References \u003e Add reference... \u003e All \u003e Select Mono.Android.Export \u003e OK**)\n\nAlso you can see [native README](native/trustly-library-android)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcoder%2Ftrustly-payments-xamarin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwcoder%2Ftrustly-payments-xamarin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcoder%2Ftrustly-payments-xamarin/lists"}