{"id":44472257,"url":"https://github.com/datatrans/payment-button","last_synced_at":"2026-02-12T21:33:38.955Z","repository":{"id":41814094,"uuid":"223200559","full_name":"datatrans/payment-button","owner":"datatrans","description":"Datatrans Payment Button integration (Apple Pay, Google Pay)","archived":false,"fork":false,"pushed_at":"2025-05-13T09:42:51.000Z","size":248,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-13T10:42:50.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://paymentbutton.datatrans.dev","language":"HTML","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/datatrans.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,"zenodo":null}},"created_at":"2019-11-21T15:05:43.000Z","updated_at":"2025-05-13T09:42:54.000Z","dependencies_parsed_at":"2024-11-19T09:21:05.264Z","dependency_job_id":"2043283f-1be3-4398-a021-c7fc363cb134","html_url":"https://github.com/datatrans/payment-button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datatrans/payment-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Fpayment-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Fpayment-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Fpayment-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Fpayment-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datatrans","download_url":"https://codeload.github.com/datatrans/payment-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Fpayment-button/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-12T21:33:38.882Z","updated_at":"2026-02-12T21:33:38.942Z","avatar_url":"https://github.com/datatrans.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datatrans Payment Button\n\nRender Apple Pay and Google Pay buttons for payments via Datatrans. Buttons are only rendered if the client supports any of the mentioned payment methods.\n\n## Usage example\n\n```js\nPaymentButton.init({\n  merchantId: '1100002476',\n  merchantName: 'Test',\n  useGooglePay: true,\n  useApplePay: true,\n  auto: true,\n  allowedCardNetworks: ['AMEX', 'DISCOVER', 'MASTERCARD', 'VISA'],\n  googlePayConfiguration: {\n    buttonType: 'long',\n    buttonStyle: 'black',\n    merchantId: '01234567890123456789'\n  },\n  applePayConfiguration: {\n    buttonType: 'plain',\n    buttonStyle: 'black'\n  }\n})\n\nPaymentButton.on('init', function () {\n\t$('.console-content').append('init event dispatched \u003cbr\u003e')\n\tPaymentButton.create(document.getElementById('paybutton'), payment)\n})\n\nPaymentButton.on('create', function () {\n  $('.console-content').append('create event dispatched \u003cbr\u003e')\n})\n\nPaymentButton.on('authorization', function (response) {\n  $('.console-content').append('authorization response:' + '\u003cbr\u003e' + response + '\u003cbr\u003e')\n})\n\nPaymentButton.on('abort', function () {\n  $('.console-content').append('Payment request aborted' + '\u003cbr\u003e')\n})\n\nPaymentButton.on('error', function (error) {\n  $('.console-content').append('Error:' + JSON.stringify(error) + '\u003cbr\u003e')\n })\n\nPaymentButton.on('unsupported', function () {\n  $('.console-content').append('Payment method not supported in this browser \u003cbr\u003e')\n})\n```\n\n## Events\n\nThe following events can be subscribed to:\n\n- `initialized` - emitted when the library was initialized\n- `created` - emitted when all buttons were rendered\n- `authorization` - emitted when the authorization process has completed\n- `abort` - emitted when the payment request was aborted\n- `error` - emitted when an error happens\n- `unsupported` - emitted when no payment method is supported by the client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatatrans%2Fpayment-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatatrans%2Fpayment-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatatrans%2Fpayment-button/lists"}