{"id":21043364,"url":"https://github.com/crystallizeapi/node-vipps","last_synced_at":"2025-06-12T08:07:35.157Z","repository":{"id":41784657,"uuid":"269364641","full_name":"CrystallizeAPI/node-vipps","owner":"CrystallizeAPI","description":"Node Vipps SDK for easy Vipps integration","archived":false,"fork":false,"pushed_at":"2022-04-28T21:53:22.000Z","size":281,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-11T20:38:03.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/CrystallizeAPI.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}},"created_at":"2020-06-04T13:17:37.000Z","updated_at":"2023-11-22T09:42:53.000Z","dependencies_parsed_at":"2022-08-11T17:02:25.491Z","dependency_job_id":null,"html_url":"https://github.com/CrystallizeAPI/node-vipps","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/CrystallizeAPI/node-vipps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-vipps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-vipps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-vipps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-vipps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrystallizeAPI","download_url":"https://codeload.github.com/CrystallizeAPI/node-vipps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-vipps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259427032,"owners_count":22855560,"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-19T14:12:35.193Z","updated_at":"2025-06-12T08:07:35.136Z","avatar_url":"https://github.com/CrystallizeAPI.png","language":"JavaScript","readme":"# node-vipps\n\nNode Vipps SDK for easy Vipps integration in Node.JS. Generic Vipps Node integration with specific support for the [Crystallize headless ecommerce service](https://crystallize.com/).\n\nCrystallize enables you to build your next-gen e-commerce business by the help of [Fast GraphQL API Service](https://crystallize.com/product/graphql-commerce-api) backed by super structured [Product Information Management (PIM)](https://crystallize.com/product/product-information-management)\n\nYou can view the required body models documented in [Vipps swagger documentation](https://vippsas.github.io/vipps-ecom-api/)\n\n## Install\n\n```\nyarn add @crystallize/node-vipps\n```\n\n## Usage\n\n### Initiate the client\u003cbr/\u003e\n\n```\nconst client = new VippsClient({\n    id: \"MY_VIPPS_CLIENT_ID\",\n    secret: \"MY_VIPPS_CLIENT_SECRET\",\n    subscriptionId: \"MY_VIPPS_SUB_KEY\",\n    testDrive: isProd ? false : true\n});\n```\n\n### Initiate a payment\u003cbr/\u003e\n\n```\nawait client.initiatePayment({order:VippsCheckoutModel});\n```\n\n### Capture a payment\u003cbr/\u003e\n\n```\nawait client.capture({ orderId: VippsOrderId, body: VippsCaptureBodyModel });\n```\n\n### Refund a payment\u003cbr/\u003e\n\n```\nawait client.refund({ orderId: VippsOrderId, body: VippsRefundBodyModel });\n```\n\n### Get order payment details\u003cbr/\u003e\n\n```\nawait client.getOrderDetails({ orderId: VippsOrderId});\n```\n\n### Get an access token\u003cbr/\u003e\n\n```\nawait client.getAccessToken();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystallizeapi%2Fnode-vipps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystallizeapi%2Fnode-vipps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystallizeapi%2Fnode-vipps/lists"}