{"id":21534404,"url":"https://github.com/daniel-rosiak/checkout-com-js","last_synced_at":"2025-03-17T20:14:37.028Z","repository":{"id":57197634,"uuid":"233063544","full_name":"daniel-rosiak/checkout-com-js","owner":"daniel-rosiak","description":"Checkout.com API JavaScirpt connector","archived":false,"fork":false,"pushed_at":"2020-02-01T15:32:30.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T14:34:44.943Z","etag":null,"topics":["checkout","checkout-com","checkout-com-api","checkoutcom","payment-api","payment-gateway","payment-integration"],"latest_commit_sha":null,"homepage":null,"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/daniel-rosiak.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}},"created_at":"2020-01-10T14:25:47.000Z","updated_at":"2020-02-01T15:32:32.000Z","dependencies_parsed_at":"2022-09-16T13:11:59.250Z","dependency_job_id":null,"html_url":"https://github.com/daniel-rosiak/checkout-com-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-rosiak%2Fcheckout-com-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-rosiak%2Fcheckout-com-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-rosiak%2Fcheckout-com-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-rosiak%2Fcheckout-com-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-rosiak","download_url":"https://codeload.github.com/daniel-rosiak/checkout-com-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102855,"owners_count":20398386,"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","checkout-com","checkout-com-api","checkoutcom","payment-api","payment-gateway","payment-integration"],"created_at":"2024-11-24T03:10:38.763Z","updated_at":"2025-03-17T20:14:36.999Z","avatar_url":"https://github.com/daniel-rosiak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Checkout.com API JavaScript Library\n\nSimple library with low level of abstraction\n\nIt's an update of https://www.npmjs.com/package/checkout-js-library, because it is outdated.\n\n\n### https://api-reference.checkout.com\n### https://docs.checkout.com/docs\n\n\n## Tests\n```\nnpm install\nnpm run test\n```\n\n## Usage\n```javascript\nimport ApiClient from \"checkout-com-js\";\n\nconst api = new ApiClient({\n  secretKey: 'sk_',\n  publicKey: 'pk_',\n  env: 'LIVE', // 'SANDBOX'  // optional\n  debugMode: true, // optional\n})\n\n```\n\n### Methods\n\nToken\n```\napi.tokenService.createToken(payload);\n```\n\nPayment\n```\napi.paymentService.createPayment(payload);\napi.paymentService.getPayment(paymentId);\napi.paymentService.getPaymentActions(paymentId);\napi.paymentService.capturePayment(paymentId, payload = {});\napi.paymentService.refundPayment(paymentId, payload = {});\napi.paymentService.voidPayment(paymentId, payload = {});\n\n```\n\nWebhook\n```\napi.webhookService.getWebhooks();\napi.webhookService.createWebhook(payload);\napi.webhookService.getWebhook(webhookId);\napi.webhookService.updateWebhook(webhookId, payload);\napi.webhookService.deleteWebhook(webhookId);\n```\n\nEvent\n```\napi.eventService.getEventTypes();\napi.eventService.getEvents();\napi.eventService.getEvent(id);\napi.eventService.getEvent(eventId);\napi.eventService.getEventNotifications(eventId, norificationId);\napi.eventService.retryWebhook(eventId, webhookId);\napi.eventService.retryAllWebhooks(eventId);\n```\n\nEvent\n```\napi.eventService.createSource(payload);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-rosiak%2Fcheckout-com-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-rosiak%2Fcheckout-com-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-rosiak%2Fcheckout-com-js/lists"}