{"id":19760075,"url":"https://github.com/singleware/payzen","last_synced_at":"2025-06-14T16:35:49.710Z","repository":{"id":57160446,"uuid":"199549836","full_name":"Singleware/payzen","owner":"Singleware","description":"Rest client for the PayZen API.","archived":false,"fork":false,"pushed_at":"2020-07-17T17:59:35.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T17:36:43.792Z","etag":null,"topics":["browser","javascript","payment-gateway","payzen","singleware","typescript"],"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/Singleware.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":"2019-07-30T01:14:14.000Z","updated_at":"2020-07-17T17:59:38.000Z","dependencies_parsed_at":"2022-09-09T10:21:05.937Z","dependency_job_id":null,"html_url":"https://github.com/Singleware/payzen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Singleware/payzen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fpayzen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fpayzen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fpayzen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fpayzen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Singleware","download_url":"https://codeload.github.com/Singleware/payzen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fpayzen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259846212,"owners_count":22920884,"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":["browser","javascript","payment-gateway","payzen","singleware","typescript"],"created_at":"2024-11-12T03:35:03.579Z","updated_at":"2025-06-14T16:35:49.689Z","avatar_url":"https://github.com/Singleware.png","language":"TypeScript","readme":"# PayZen\n\nRest client for the PayZen gateway, for more info, please check the [Official Documentation](https://payzen.io/pt-BR/rest/V4.0/api/reference.html)\n\n## Usage\n\nAuthorizing the connection.\n\n```ts\nimport * as PayZen from '@singleware/payzen';\nimport * as Injection from '@singleware/injection';\n\n// Basic authorization.\nInjection.resolve(PayZen.Client).setAuthorization('USER', 'SECRET');\n```\n\nCreating new credit card token.\n\n```ts\nimport * as PayZen from '@singleware/payzen';\nimport * as Injection from '@singleware/injection';\n\n// Getting a promise to receive the credit card token.\nconst promise = Injection.resolve(PayZen.Tokens.Mapper).create({\n  currency: PayZen.Types.Currency.BRL,\n  customer: {\n    email: 'customer@email.br'\n  },\n  paymentForms: [\n    {\n      paymentMethodType: PayZen.Types.Payment.Method.Card,\n      pan: 'CARD_NUMBER',\n      expiryMonth: 'CARD_MONTH',\n      expiryYear: 'CARD_YEAR',\n      securityCode: 'CARD_CVV'\n    }\n  ]\n});\n```\n\nCreating a new payment based on the received card token.\n\n```ts\nimport * as PayZen from '@singleware/payzen';\nimport * as Injection from '@singleware/injection';\n\n// Getting a promise to receive the payment uuid.\nconst promise = Injection.resolve(PayZen.Payments.Mapper).create({\n  amount: 1000,\n  currency: PayZen.Types.Currency.BRL,\n  paymentMethodToken: 'CARD_TOKEN',\n  customer: {\n    email: 'customer@email.br'\n  }\n});\n```\n\nCreating a new subscription based on the received card token.\n\n```ts\nimport * as PayZen from '@singleware/payzen';\nimport * as Injection from '@singleware/injection';\n\n// Getting a promise to receive the subscription id.\nconst promise = Injection.resolve(PayZen.Payments.Mapper).create({\n  amount: 1000,\n  currency: PayZen.Types.Currency.BRL,\n  effectDate: new Date(),\n  paymentMethodToken: 'CARD_TOKEN',\n  rrule: 'RRULE:FREQ=MONTHLY;BYMONTHDAY=1;COUNT=1',\n  customer: {\n    email: 'customer@email.br'\n  }\n});\n```\n\n## Install\n\nUsing npm:\n\n```sh\nnpm i @singleware/payzen\n```\n\n## License\n\n[MIT \u0026copy; Silas B. Domingos](https://balmante.eti.br)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fpayzen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingleware%2Fpayzen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fpayzen/lists"}