{"id":24396635,"url":"https://github.com/cloudipsp/ipsp-js-sdk","last_synced_at":"2025-04-11T16:41:31.594Z","repository":{"id":25595073,"uuid":"104469466","full_name":"cloudipsp/ipsp-js-sdk","owner":"cloudipsp","description":"Fondy Checkout SDK","archived":false,"fork":false,"pushed_at":"2025-03-20T10:43:24.000Z","size":1867,"stargazers_count":13,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T11:01:30.387Z","etag":null,"topics":["checkout-page","checkout-widget","payment-module"],"latest_commit_sha":null,"homepage":"https://cloudipsp.github.io/ipsp-js-sdk/","language":"JavaScript","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/cloudipsp.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":"2017-09-22T11:57:56.000Z","updated_at":"2025-03-20T10:43:26.000Z","dependencies_parsed_at":"2024-06-19T09:16:23.759Z","dependency_job_id":"fda3bb09-cec6-443f-81c6-6e52d8b53c14","html_url":"https://github.com/cloudipsp/ipsp-js-sdk","commit_stats":{"total_commits":290,"total_committers":2,"mean_commits":145.0,"dds":0.006896551724137945,"last_synced_commit":"07a0185d6ff9621348154b1368de2cbe422b88a8"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-js-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-js-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-js-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-js-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudipsp","download_url":"https://codeload.github.com/cloudipsp/ipsp-js-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442201,"owners_count":21104130,"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":["checkout-page","checkout-widget","payment-module"],"created_at":"2025-01-19T21:54:51.283Z","updated_at":"2025-04-11T16:41:31.571Z","avatar_url":"https://github.com/cloudipsp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://fondy.eu/\"\u003e\u003cimg src=\"https://fondy.ua/uploads/2022/08/fondy_logo.svg\" alt=\"IPSP JS SDK\" width=\"109\" height=\"25\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  IPSP JS SDK\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/ipsp-js-sdk\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/ipsp-js-sdk.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/ipsp-js-sdk\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/ipsp-js-sdk.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/cloudipsp/ipsp-js-sdk\"\u003e\u003cimg src=\"https://img.shields.io/bower/v/ipsp-js-sdk.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/cloudipsp/ipsp-js-sdk\"\u003e\u003cimg src=\"https://img.shields.io/github/license/cloudipsp/ipsp-js-sdk.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://fondy.eu/\"\u003e\u003cimg src=\"https://img.shields.io/badge/official-website-green.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Installation\n\n### Node\n\nIf you’re using [Npm](https://npmjs.com/) in your project, you can add `ipsp-js-sdk` dependency to `package.json` \nwith following command:\n\n```cmd\nnpm i --save ipsp-js-sdk\n```\n\nor add dependency manually:\n\n```json\n{\n  \"dependency\": {\n    \"ipsp-js-sdk\":\"^2.0\"\n  }\n}\n```\n\n### Bower\n\nIf you’re using [Bower](https://bower.io/) in your project, you can run the following command:\n\n```cmd\nbower install ipsp-js-sdk\n```\n\n### Manual installation\n\nIf you do not use NodeJS, you can download the\n[latest release](https://github.com/cloudipsp/ipsp-js-sdk/releases).\nOr clone from GitHub the latest developer version\n```cmd\ngit clone git@github.com:cloudipsp/ipsp-js-sdk.git\n```\n\n\n## Quick start\n\n```html\n\u003cscript src=\"https://unpkg.com/ipsp-js-sdk@latest/dist/checkout.min.js\"\u003e\u003c/script\u003e\n```\n\n## Basic template\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript src=\"https://unpkg.com/ipsp-js-sdk\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n    $checkout('Api').scope(function(){\n        this.request('api.checkout.form','request', { Parameters } ).done(function(model){\n            model.sendResponse();\n            console.log(model.attr('order'));\n        }).fail(function(model){\n            console.log(model.attr('error'));\n        });\n    });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## PaymentButton template (ApplePay/GooglePay)\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript src=\"https://unpkg.com/ipsp-js-sdk\"\u003e\u003c/script\u003e\n    \u003cdiv class=\"payment-button-container\"\u003e\u003c/div\u003e\n    \u003cscript\u003e\n    $checkout.get('PaymentButton', {\n      element: '.payment-button-container',\n      style: {\n        type: 'long', // short|long\n        color: 'black', // black|white\n        height: 38 // button height\n      },\n      data: { Parameters }\n    }).on('success', function(model) {\n      console.log('success', model);\n    }).on('error', function(model) {\n      console.log('error', model);\n    });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Parameters\n\n### Host-to-host token\n\n\n```json\n{\n  \"payment_system\":\"Supported payment systems: card, p24\",\n  \"token\":\"host-to-host generated token\",\n  \"card_number\":\"16/19-digits number\",\n  \"expiry_date\":\"Supported formats: MM/YY, MM/YYYY, MMYY, MMYYYY\",\n  \"cvv2\":\"3-digits number\"\n}\n```\n\nWhere token is value, returned in paymentgateway response from API enpoint /api/checkout/token (more details in API documentation: https://docs.fondy.eu/docs/page/3/ )\n\nrequest example:\n\n```\ncurl -i -X POST \\\n   -H \"Content-Type:application/json\" \\\n   -d \\\n'{\n  \"request\": {\n    \"server_callback_url\": \"http://myshop/callback/\",\n    \"order_id\": \"TestOrder1\",\n    \"currency\": \"USD\",\n    \"merchant_id\": 1396424,\n    \"order_desc\": \"Test payment\",\n    \"amount\": 1000\n  }\n}' \\\n 'https://api.fondy.eu/api/checkout/token'\n```\n\nresponse example:\n```json\n{\n    \"response\": {\n        \"response_status\": \"success\",\n        \"token\": \"7ddb3fbb03d60787b3972ef8d6fad0f97f7d2f86\"\n    }\n}\n```\n\n\n\n### Client-side merchant ID\n\n```json\n{\n  \"payment_system\":\"Supported payment systems: card, p24\",\n  \"merchant_id\":\"1396424\",\n  \"currency\":\"USD\",\n  \"amount\":\"100.20\",\n  \"card_number\":\"16/19-digits number\",\n  \"expiry_date\":\"Supported formats: MM/YY, MM/YYYY, MMYY, MMYYYY\",\n  \"cvv2\":\"3-digits number\"\n}\n```\n\noptional merchant parameters:\n\n\n```json\n{\n  \"email\":\"customer email address\",\n  \"phone\":\"customer phone number\"\n}\n```\n## JS SDK usage example\n\nhttps://jsfiddle.net/fondyeu/jdc9o5cx/\n\n\n## License\n\n[MIT](https://github.com/cloudipsp/ipsp-js-sdk/blob/HEAD/LICENSE)\n\n## Author\n\n[![Stepan Kosatyi](https://img.shields.io/badge/stepan-kosatyi-purple.svg)](https://kosatyi.com/)\n[![Fondy.io](https://img.shields.io/badge/fondy-io-lightgreen.svg)](https://fondy.io/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudipsp%2Fipsp-js-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudipsp%2Fipsp-js-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudipsp%2Fipsp-js-sdk/lists"}