{"id":20672115,"url":"https://github.com/workarea-commerce/workarea-klarna","last_synced_at":"2026-04-24T09:33:57.631Z","repository":{"id":55898150,"uuid":"278241691","full_name":"workarea-commerce/workarea-klarna","owner":"workarea-commerce","description":"Workarea Commerce Plugin that enables Klarna Payments","archived":false,"fork":false,"pushed_at":"2020-12-22T21:25:28.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T14:49:27.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workarea-commerce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-09T02:22:43.000Z","updated_at":"2020-12-22T21:25:31.000Z","dependencies_parsed_at":"2022-08-15T09:00:22.640Z","dependency_job_id":null,"html_url":"https://github.com/workarea-commerce/workarea-klarna","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-klarna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-klarna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-klarna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-klarna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workarea-commerce","download_url":"https://codeload.github.com/workarea-commerce/workarea-klarna/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242891330,"owners_count":20202326,"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":[],"created_at":"2024-11-16T20:32:05.192Z","updated_at":"2026-04-24T09:33:52.608Z","avatar_url":"https://github.com/workarea-commerce.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Workarea Klarna\n================================================================================\n\nWorkarea Commerce plugin that adds [Klarna](https://www.klarna.com/) payment options for customers including pay later, pay installments, and more.\n\nOverview\n--------------------------------------------------------------------------------\n* Adds Klarna tender type.\n* Dynamically provides payment options in checkout based on customer's eligible payment options determined by geographic location.\n* Supports authorizations, captures, cancellations, and refunds.\n* Enables On-Site Messaging through admin configuration.\n\nGetting Started\n--------------------------------------------------------------------------------\n\nThis gem contains a Rails engine that must be mounted onto a host Rails application.\n\nThen add the gem to your application's Gemfile specifying the source:\n\n    # ...\n    gem 'workarea-klarna'\n    # ...\n\nUpdate your application's bundle.\n\n    cd path/to/application\n    bundle\n\nConfigure Klarna credentials. See below.\n\nSupport \u0026 Configuration\n--------------------------------------------------------------------------------\n\nKlarna support is based on a customer's location. Klarna currently accepts payment from customers of North America, Europe, and will soon support Oceania(Australia).\n\nYou must provide credentials for each region you would like to support. The plugin allows multiple options to provide credentials to communicate with Klarna -- environment variables, rails credentials, or admin configurable fields.\n\n### North America\n\n* Test Environment: https://playground.us.portal.klarna.com/developer-sign-up\n* Plugin environment variables:\n\n   `WORKAREA_KLARNA_NA_USERNAME`    \n   `WORKAREA_KLARNA_NA_PASSWORD`\n* Rails credentials:\n  ```\n  klarna:\n    na:\n      username:\n      password:\n  ```\n* Or, you can log into the admin and go to Settings \u003e Configuration, and add the North America username and password.\n\n### Europe\n\n* Test Environment: https://playground.eu.portal.klarna.com/developer-sign-up\n* Plugin environment variables:\n\n   `WORKAREA_KLARNA_EUR_USERNAME`    \n   `WORKAREA_KLARNA_EUR_PASSWORD`\n* Rails credentials:\n  ```\n  klarna:\n    eur:\n      username:\n      password:\n  ```\n* Or, you can log into the admin and go to Settings \u003e Configuration, and add the Europe username and password.\n\nYou can get more specific information from the [Klarna Developer](https://developers.klarna.com/) portal.\n\n## On-Site Messaging\n\nKlarna allows you to strategically place information about Klarna payments on your website through On-Site Messaging. The workarea-klarna plugin simplifies the installation process by including the required script tag and some common placements when an admin user configures on-site messaging in the admin.\n\n### Enabling\n\nWorkarea provides two configuration fields in the admin under the \"Klarna\" section to allow the use of messaging. The first field is the on-site messaging client ID. To obtain an ID, [go through the activation process](https://developers.klarna.com/documentation/on-site-messaging/integration/platform-activation/) on your Klarna merchant portal. This will provide a code sample of the script tag that Workarea will automatically generate. Copy the client ID from that code sample and set it within the Workarea configuration page, select the region that corresponds to the region of your merchant portal (North America, Europe, or Oceania), and you're done!\n\n### Automated Placements\n\nOnce you provide the client ID, Workarea will automatically enable two placements on your site. The first is the \"info-page\" placement, which is used to generate the page at **yoursite.com/klarna** and a link to that page will be added to the footer navigation. The second placement is on product detail pages, where a message will display under the add to cart button advertising Klarna as a payment option. The price within this message will update if/when the price of the product changes as a user selects product options.\n\n### Custom Placements\n\nTo add more placements to your site, you can utilize the various system and content pages by adding a HTML content block and copying the placement code from your [Klarna merchant portal placements page](https://developers.klarna.com/documentation/on-site-messaging/integration/installation/#adding-placements).\n\nWorkarea Platform Documentation\n--------------------------------------------------------------------------------\n\nSee [https://developer.workarea.com](https://developer.workarea.com) for Workarea platform documentation.\n\nLicense\n--------------------------------------------------------------------------------\n\nWorkarea Klarna is released under the [Business Software License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-klarna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkarea-commerce%2Fworkarea-klarna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-klarna/lists"}