{"id":28245069,"url":"https://github.com/multisafepay/multisafepay-node-wrapper","last_synced_at":"2025-06-14T11:30:34.539Z","repository":{"id":35088386,"uuid":"205156130","full_name":"MultiSafepay/multisafepay-node-wrapper","owner":"MultiSafepay","description":"Node wrapper for the MultiSafepay API","archived":false,"fork":false,"pushed_at":"2023-03-04T04:36:50.000Z","size":1677,"stargazers_count":6,"open_issues_count":11,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-08T09:45:24.868Z","etag":null,"topics":["api","multisafepay","node-wrapper","payment"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/MultiSafepay.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":"2019-08-29T12:12:54.000Z","updated_at":"2022-09-02T18:10:48.000Z","dependencies_parsed_at":"2024-09-25T09:02:38.586Z","dependency_job_id":null,"html_url":"https://github.com/MultiSafepay/multisafepay-node-wrapper","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":"0.29166666666666663","last_synced_commit":"4a8a1f20a1b082aab92ffdc25efb72538828d9ad"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MultiSafepay/multisafepay-node-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultiSafepay%2Fmultisafepay-node-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultiSafepay%2Fmultisafepay-node-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultiSafepay%2Fmultisafepay-node-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultiSafepay%2Fmultisafepay-node-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MultiSafepay","download_url":"https://codeload.github.com/MultiSafepay/multisafepay-node-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultiSafepay%2Fmultisafepay-node-wrapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259808107,"owners_count":22914570,"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":["api","multisafepay","node-wrapper","payment"],"created_at":"2025-05-19T08:14:54.569Z","updated_at":"2025-06-14T11:30:34.526Z","avatar_url":"https://github.com/MultiSafepay.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://camo.githubusercontent.com/517483ae0eaba9884f397e9af1c4adc7bbc231575ac66cc54292e00400edcd10/68747470733a2f2f7777772e6d756c7469736166657061792e636f6d2f66696c6561646d696e2f74656d706c6174652f696d672f6d756c7469736166657061792d6c6f676f2d69636f6e2e737667\" width=\"400px\" position=\"center\"\u003e\n\u003c/p\u003e\n\n# Node.js wrapper for the MultiSafepay API\n\nThis wrapper simplifies working with the MultiSafepay API and lets you integrate MultiSafepay in your Node.js application.\n\n## About MultiSafepay\n\nMultiSafepay is a Dutch payment service provider, which takes care of contracts, processing transactions, and collecting payment for a range of local and international payment methods. Start selling online today and manage all your transactions in one place!\n\n## Requirements\n\n- You will need a MultiSafepay account. Consider [creating a test account](https://testmerchant.multisafepay.com/signup) first.\n- If using Node 8.0+, we recommend using async/await. For older versions of Node, use promises or callbacks instead of async/await.\n\n## Installation\n\nWith npm:\n\n```sh\nnpm install @multisafepay/api-wrapper --save\n```\n\nAnd yarn:\n\n```sh\nyarn add @multisafepay/api-wrapper\n```\n\n## Usage\n\nSet up the client for testing with **ES6 imports**:\n\n```javascript\nimport MSPClient from '@multisafepay/api-wrapper';\nconst client = new MSPClient('apiKey');\n```\n\nWith **require module**:\n\n```javascript\nconst MSPClient = require('@multisafepay/api-wrapper').default;\nconst client = new MSPClient('apiKey');\n```\n\nTo use the test environment:\n\n```javascript\nconst client = new MSPClient('apiKey', { environment: 'test' });\n```\n\nCreate a test order with **async/await**:\n\n```javascript\n# This code creates a redirect iDEAL order\nasync () =\u003e {\n  try {\n    const multiSafePayClient = new MSPClient(apiKey, { environment: 'test' });\n\n    return await multiSafePayClient.orders.create({\n      type: 'redirect',\n      order_id: \"my-order-id-1\",\n      gateway: 'iDEAL',\n      currency: 'EUR',\n      amount: '1000',\n      description: 'Test Order Description',\n      payment_options: {\n        notification_url:\n          'http://www.example.com/client/notification?type=notification',\n        redirect_url:\n          'http://www.example.com/client/notification?type=redirect',\n        cancel_url: 'http://www.example.com/client/notification?type=cancel',\n        close_window: '',\n      },\n      customer: {\n        locale: 'en_US',\n      },\n      second_chance: {\n        send_email: true,\n      },\n    });\n  } catch (error) {\n    console.log(error);\n  }\n};\n```\n\nWith **promises**:\n\n```javascript\n# This code creates a redirect iDEAL order\nmultiSafePayClient.orders\n  .create({\n    type: 'redirect',\n    order_id: 'my-order-id-1',\n    gateway: 'iDEAL',\n    currency: 'EUR',\n    amount: '1000',\n    description: 'Test Order Description',\n    payment_options: {\n      notification_url:\n        'http://www.example.com/client/notification?type=notification',\n      redirect_url: 'http://www.example.com/client/notification?type=redirect',\n      cancel_url: 'http://www.example.com/client/notification?type=cancel',\n      close_window: '',\n    },\n    customer: {\n      locale: 'en_US',\n    },\n    second_chance: {\n      send_email: true,\n    },\n  })\n  .then(response =\u003e {\n    console.log(response);\n  })\n  .catch(error =\u003e {\n    console.log(error);\n  });\n\n```\n\nSee [more examples](https://github.com/MultiSafepay/multisafepay-node-wrapper/tree/master/examples).\n\n## Support\n\nCreate an issue on this repository or email \u003ca href=\"mailto:integrationt@multisafepay.com\"\u003eintegration@multisafepay.com\u003c/a\u003e\n\n## Contributions\n\nFeel free to [create a pull request](https://github.com/MultiSafepay/multisafepay-node-wrapper/pulls) on this repository to suggest improvements.\n\n## API reference\n\nSee MultiSafepay Docs – [API reference](https://docs.multisafepay.com/api/).\n\n## License\n\n[MIT License](https://github.com/MultiSafepay/multisafepay-node-wrapper/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultisafepay%2Fmultisafepay-node-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultisafepay%2Fmultisafepay-node-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultisafepay%2Fmultisafepay-node-wrapper/lists"}