{"id":32641470,"url":"https://github.com/themisir/paytr-js","last_synced_at":"2025-10-31T02:58:38.772Z","repository":{"id":57321107,"uuid":"414240808","full_name":"themisir/paytr-js","owner":"themisir","description":"PayTR javascript client with typings support","archived":false,"fork":false,"pushed_at":"2021-11-06T12:54:56.000Z","size":57,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T02:28:25.045Z","etag":null,"topics":["paytr","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/paytr","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/themisir.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-10-06T14:16:05.000Z","updated_at":"2025-04-13T19:19:18.000Z","dependencies_parsed_at":"2022-08-26T01:11:27.680Z","dependency_job_id":null,"html_url":"https://github.com/themisir/paytr-js","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/themisir/paytr-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themisir%2Fpaytr-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themisir%2Fpaytr-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themisir%2Fpaytr-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themisir%2Fpaytr-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themisir","download_url":"https://codeload.github.com/themisir/paytr-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themisir%2Fpaytr-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281920153,"owners_count":26583946,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["paytr","typescript"],"created_at":"2025-10-31T02:57:20.108Z","updated_at":"2025-10-31T02:58:38.766Z","avatar_url":"https://github.com/themisir.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PAYTR - Node.js Integration\n\nSimple javascript integration API for [paytr](https://www.paytr.com/) payment\ngateway with TypeScript typings.\n\n# Getting started\n\n1. Install paytr package into your project using `npm` or `yarn` and import it\n\n```ts\nimport { PayTRClient } from 'paytr';\n```\n\n2. Create paytr payment client using your merchant parameters\n\n```ts\nconst paytr = new PayTRClient({\n  merchant_id:     '000000',\n  merchant_key:    'key provided by paytr',\n  merchant_salt:   'salt provided by paytr',\n  debug_on:        true,\n  no_installment:  true,\n  max_installment: 0,\n  timeout_limit:   0,\n  test_mode:       false,\n});\n```\n\nPlease check documentation provided by PayTR for detailed information about the\nfollowing parameters.\n\n3. Create payment token\n\n```ts\nconst response = await paytr.getToken({\n  merchant_oid:   'unique id',\n  payment_amount: 10.99,\n  currency:       'TRY',\n  email:          'user@domain.tld',\n  user_ip:        '127.0.0.1',\n  user_name:      'John Doe',\n  user_phone:     '+123456789',\n  user_address:   'customer billing address',\n  user_basket:    [\n    {\n      name:    'Product name',\n      price:   '10.99',\n      quantity: 1,\n    }\n  ],\n  merchant_ok_url:   'https://example.local/success',\n  merchant_fail_url: 'https://example.local/fail',\n});\n```\n\n4. Render payment iframe using generated token or redirect user to that URL\n\n```ts\nconst paytrUrl = 'https://www.paytr.com/odeme/guvenli/' + response.token;\n```\n\n# Notice\n\n_This package is not affiliated with \"PayTR Ödeme ve Elektronik Para Kuruluşu A.Ş\"\nin any way._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemisir%2Fpaytr-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemisir%2Fpaytr-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemisir%2Fpaytr-js/lists"}